From 8a959660ce5d1a1c0b5698fac0dc1226a6e56465 Mon Sep 17 00:00:00 2001 From: Eric Mueller Date: Wed, 8 May 2024 16:57:31 -0400 Subject: [PATCH] Don't use modern-style hashes in specs --- spec/rspec/matchers/built_in/compound_spec.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spec/rspec/matchers/built_in/compound_spec.rb b/spec/rspec/matchers/built_in/compound_spec.rb index 8f9ccd6a7..12c416148 100644 --- a/spec/rspec/matchers/built_in/compound_spec.rb +++ b/spec/rspec/matchers/built_in/compound_spec.rb @@ -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