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

Commit

Permalink
Fix obsolete DSL
Browse files Browse the repository at this point in the history
  • Loading branch information
pirj authored and JonRowe committed Oct 26, 2022
1 parent d6d05e0 commit ed6a561
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/rspec/core/formatters/snippet_extractor_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def obj.foo(arg)
end
end

context 'when the expression line includes an "end"-less method definition', :if => RUBY_VERSION.to_f >= 3.0 do
context 'when the expression line includes an "end"-less method definition', :skip => RUBY_VERSION.to_f < 3.0 do
include RSpec::Support::InSubProcess

around(:example) do |example|
Expand Down Expand Up @@ -222,7 +222,7 @@ def obj.foo = raise
end
end

context 'when the expression is a setter method definition', :unless => argument_error_points_invoker do
context 'when the expression is a setter method definition', :skip => argument_error_points_invoker do
let(:source) do
obj = Object.new

Expand Down

0 comments on commit ed6a561

Please sign in to comment.