Skip to content
This repository has been archived by the owner on Nov 30, 2024. It is now read-only.

Commit

Permalink
skip specs on legacy ruby
Browse files Browse the repository at this point in the history
  • Loading branch information
pirj committed Aug 4, 2024
1 parent 158ff42 commit 87182cf
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" 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" 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 87182cf

Please sign in to comment.