Skip to content

Commit

Permalink
Merge pull request #1209 from rspec/fix-build
Browse files Browse the repository at this point in the history
Replace symbol array constructor
  • Loading branch information
JonRowe authored Aug 26, 2020
2 parents 11e42cc + 941828d commit 236d55f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/rspec/matchers/built_in/be_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -718,15 +718,15 @@ def send
end

it "handles ArgumentError as a failure" do
%i[< <= >= >].each do |operator|
[:<, :<=, :>=, :>].each do |operator|
expect {
expect('a').to_not be.send(operator, 1)
}.to fail_with(%(`expect("a").not_to be #{operator} 1` not only FAILED, it is a bit confusing.))
end
end

it "handles NameError as a failure" do
%i[< <= >= >].each do |operator|
[:<, :<=, :>=, :>].each do |operator|
expect {
expect(
Class.new do
Expand Down

0 comments on commit 236d55f

Please sign in to comment.