Skip to content

Commit

Permalink
fix 1.8.7
Browse files Browse the repository at this point in the history
  • Loading branch information
pirj committed Aug 4, 2024
1 parent 87182cf commit 778e977
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/rspec/matchers/built_in/satisfy_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def invalid_block
expect { ary.shift }.to satisfy { |returned_value| returned_value == 1 }
end

it "provides a sensible failure message", skip: !RSpec::Support::RubyFeatures.ripper_supported? do
it "provides a sensible failure message", :skip => !RSpec::Support::RubyFeatures.ripper_supported? do
expect {
expect { ary.shift }.to satisfy { |returned_value| returned_value == :other }
}.to fail_with("expected 1 to satisfy expression `returned_value == :other`")
Expand All @@ -150,7 +150,7 @@ def invalid_block
expect { ary.shift }.not_to satisfy { |returned_value| returned_value == 2 }
end

it "fails when the retuned value matches", skip: !RSpec::Support::RubyFeatures.ripper_supported? do
it "fails when the retuned value matches", :skip => !RSpec::Support::RubyFeatures.ripper_supported? do
expect {
expect { ary.shift }.not_to satisfy { |returned_value| returned_value == 1 }
}.to fail_with("expected 1 not to satisfy expression `returned_value == 1`")
Expand Down

0 comments on commit 778e977

Please sign in to comment.