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

Use :skip instead of :if/:unless #497

Merged
merged 1 commit into from
Feb 16, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion spec/rspec/support/source/node_spec.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require 'rspec/support/source/node'

class RSpec::Support::Source
RSpec.describe Node, :if => RSpec::Support::RubyFeatures.ripper_supported? do
RSpec.describe Node, :skip => !RSpec::Support::RubyFeatures.ripper_supported? do
let(:root_node) do
Node.new(sexp)
end
Expand Down
2 changes: 1 addition & 1 deletion spec/rspec/support/source/token_spec.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require 'rspec/support/source/token'

class RSpec::Support::Source
RSpec.describe Token, :if => RSpec::Support::RubyFeatures.ripper_supported? do
RSpec.describe Token, :skip => !RSpec::Support::RubyFeatures.ripper_supported? do
let(:target_token) do
tokens.first
end
Expand Down
2 changes: 1 addition & 1 deletion spec/rspec/support/source_spec.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require 'rspec/support/source'

module RSpec::Support
RSpec.describe Source, :if => RSpec::Support::RubyFeatures.ripper_supported? do
RSpec.describe Source, :skip => !RSpec::Support::RubyFeatures.ripper_supported? do
subject(:source) do
Source.new(source_string)
end
Expand Down