File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 33
33
} . should raise_error ( TypeError )
34
34
end
35
35
36
- it "raises without any args " do
36
+ it "raises an ArgumentError if no arguments provided " do
37
37
lambda {
38
38
[ 10 ] . dig ( )
39
39
} . should raise_error ( ArgumentError )
Original file line number Diff line number Diff line change 28
28
h . dig ( :foo , :zot , :xyz ) . should == nil
29
29
end
30
30
31
- it "raises without args " do
31
+ it "raises an ArgumentError if no arguments provided " do
32
32
lambda { { the : 'borg' } . dig ( ) } . should raise_error ( ArgumentError )
33
33
end
34
34
Original file line number Diff line number Diff line change 25
25
} . should raise_error ( TypeError )
26
26
end
27
27
28
+ it "raises an ArgumentError if no arguments provided" do
29
+ lambda { @instance . dig } . should raise_error ( ArgumentError )
30
+ end
31
+
28
32
it "calls #dig on any intermediate step with the rest of the sequence as arguments" do
29
33
obj = Object . new
30
34
instance = @klass . new ( obj )
You can’t perform that action at this time.
0 commit comments