Skip to content

Commit

Permalink
fixup! Work around 1.8 syntax deficiency
Browse files Browse the repository at this point in the history
  • Loading branch information
pirj committed Aug 24, 2019
1 parent 6b9fd9e commit 1da2e36
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions spec/support/shared_examples/block_matcher.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,9 @@ def invalid_expectation

it 'preserves the symmetric property of `==`' do
expect(matcher).to eq(matcher)
expect(matcher).not_to eq(-> { valid_block })
expect(-> { valid_block }).not_to eq(matcher)
valid_block_proc = -> { valid_block }
expect(matcher).not_to eq(valid_block_proc)
expect(valid_block_proc).not_to eq(matcher)
end

# NOTE: The four examples below make use of `proc` due to its tolerance
Expand Down

0 comments on commit 1da2e36

Please sign in to comment.