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

Commit

Permalink
Add a missing space
Browse files Browse the repository at this point in the history
  • Loading branch information
pirj committed Jan 25, 2024
1 parent e9ac9b7 commit 898cdaa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions features/setting_constraints/matching_arguments.feature
Original file line number Diff line number Diff line change
Expand Up @@ -145,20 +145,20 @@ Feature: Matching arguments
it "passes when the expectation is true" do
expect(dbl).to receive(:foo).with(a_b_c_equals_5)
dbl.foo({ :a => { :b=> { :c => 5 } } })
dbl.foo({ :a => { :b => { :c => 5 } } })
end
it "fails when the expectation is false" do
expect(dbl).to receive(:foo).with(a_b_c_equals_5)
dbl.foo({ :a => { :b=> { :c => 3 } } })
dbl.foo({ :a => { :b => { :c => 3 } } })
end
end
"""
When I run `rspec rspec_satisfy_spec.rb`
Then it should fail with the following output:
| 2 examples, 1 failure |
| |
| Failure/Error: dbl.foo({ :a => { :b=> { :c => 3 } } }) |
| Failure/Error: dbl.foo({ :a => { :b => { :c => 3 } } }) |
| #<Double (anonymous)> received :foo with unexpected arguments |
| expected: (satisfy expression `data[:a][:b][:c] == 5`) |
| got: ({:a=>{:b=>{:c=>3}}}) |
Expand Down

0 comments on commit 898cdaa

Please sign in to comment.