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

Commit

Permalink
Don't use modern-style hashes in specs
Browse files Browse the repository at this point in the history
  • Loading branch information
nevinera committed May 8, 2024
1 parent d530e6e commit 8a95966
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions spec/rspec/matchers/built_in/compound_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1001,14 +1001,14 @@ def actual
let(:matcher_2) { double("Matcher 2") }

context "when neither matcher expects a call-stack jump" do
let(:matcher_1) { double("Matcher 1", expects_call_stack_jump?: false) }
let(:matcher_2) { double("Matcher 2", expects_call_stack_jump?: false) }
let(:matcher_1) { double("Matcher 1", :expects_call_stack_jump? => false) }
let(:matcher_2) { double("Matcher 2", :expects_call_stack_jump? => false) }
it { is_expected.to be_falsey }
end

context "when one of the matchers expects a call-stack jump" do
let(:matcher_1) { double("Matcher 1", expects_call_stack_jump?: false) }
let(:matcher_2) { double("Matcher 2", expects_call_stack_jump?: true) }
let(:matcher_1) { double("Matcher 1", :expects_call_stack_jump? => false) }
let(:matcher_2) { double("Matcher 2", :expects_call_stack_jump? => true) }
it { is_expected.to be_truthy }
end

Expand Down

0 comments on commit 8a95966

Please sign in to comment.