Skip to content
This repository was archived by the owner on Nov 30, 2024. It is now read-only.

Commit ea0fb01

Browse files
Switch to hashrockets syntax for Legacy Ruby builds
1 parent 6562230 commit ea0fb01

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

features/setting_constraints/matching_arguments.feature

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,20 +84,20 @@ Feature: Matching arguments
8484
8585
it "passes when the expectation is true" do
8686
expect(dbl).to receive(:foo).with(a_b_c_equals_5)
87-
dbl.foo(a: { b: { c: 5 } })
87+
dbl.foo({ :a => { :b=> { :c => 5 } } })
8888
end
8989
9090
it "fails when the expectation is false" do
9191
expect(dbl).to receive(:foo).with(a_b_c_equals_5)
92-
dbl.foo(a: { b: { c: 3 } })
92+
dbl.foo({ :a => { :b=> { :c => 3 } } })
9393
end
9494
end
9595
"""
9696
When I run `rspec rspec_satisfy_spec.rb`
9797
Then it should fail with the following output:
9898
| 2 examples, 1 failure |
9999
| |
100-
| Failure/Error: dbl.foo(a: { b: { c: 3 } }) |
100+
| Failure/Error: dbl.foo({ :a => { :b=> { :c => 3 } } }) |
101101
| #<Double (anonymous)> received :foo with unexpected arguments |
102102
| expected: (satisfy expression `data[:a][:b][:c] == 5`) |
103103
| got: ({:a=>{:b=>{:c=>3}}}) |

0 commit comments

Comments
 (0)