Skip to content
This repository was archived by the owner on Oct 12, 2023. It is now read-only.

Commit ecf10b7

Browse files
committed
Remove lonely operator
1 parent 7789f88 commit ecf10b7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

spec/unit_tests/be_invalid_on_matcher_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77

88
let(:match_block) { matchers.match_blocks[:be_invalid_on] }
99
let(:chain_blocks) { matchers.chain_blocks[:be_invalid_on] }
10-
let(:with_chain_block) { chain_blocks&.[](:with) }
11-
let(:on_context_chain_block) { chain_blocks&.[](:on_context) }
10+
let(:with_chain_block) { chain_blocks[:with] }
11+
let(:on_context_chain_block) { chain_blocks[:on_context] }
1212
let(:failure_message_block) { matchers.failure_message_blocks[:be_invalid_on] }
1313

1414
it 'is registered with match block' do

spec/unit_tests/be_valid_on_matcher_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77

88
let(:match_block) { matchers.match_blocks[:be_valid_on] }
99
let(:chain_blocks) { matchers.chain_blocks[:be_valid_on] }
10-
let(:with_chain_block) { chain_blocks&.[](:with) }
11-
let(:on_context_chain_block) { chain_blocks&.[](:on_context) }
10+
let(:with_chain_block) { chain_blocks[:with] }
11+
let(:on_context_chain_block) { chain_blocks[:on_context] }
1212
let(:failure_message_block) { matchers.failure_message_blocks[:be_valid_on] }
1313

1414
it 'is registered with match block' do

0 commit comments

Comments
 (0)