Skip to content

Commit

Permalink
fix(specs): Fix the client spec in Ruby 3 that exposed a subtle bug i…
Browse files Browse the repository at this point in the history
…n argument matching, cf. rspec/rspec-mocks#1460
  • Loading branch information
aitor committed Jun 7, 2022
1 parent e3dd2ba commit 2a71bf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/client_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

describe "#get" do
it "delegates to #request" do
expect(subject).to receive(:execute).with(:get, "path", nil, foo: "bar").and_return(:returned)
expect(subject).to receive(:execute).with(:get, "path", nil, { foo: "bar" }).and_return(:returned)
expect(subject.get("path", foo: "bar")).to eq(:returned)
end
end
Expand Down

0 comments on commit 2a71bf2

Please sign in to comment.