Skip to content

Commit 5333871

Browse files
committed
Refactor Truffle::TimeOperations.compose to move out handling of two method signatures
1 parent c3be26c commit 5333871

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

core/time/shared/time_params.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,10 @@
179179
}.should raise_error(ArgumentError, "argument out of range")
180180
end
181181

182+
it "raises ArgumentError when given 8 arguments" do
183+
-> { Time.send(@method, *[0]*8) }.should raise_error(ArgumentError)
184+
end
185+
182186
it "raises ArgumentError when given 9 arguments" do
183187
-> { Time.send(@method, *[0]*9) }.should raise_error(ArgumentError)
184188
end

0 commit comments

Comments
 (0)