Skip to content

Commit

Permalink
Use :skip instead of :if/:unless
Browse files Browse the repository at this point in the history
  • Loading branch information
pirj committed Feb 16, 2021
1 parent 89a9e1e commit 8b7d67d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion spec/rspec/rails/fixture_support_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ module RSpec::Rails
end
end

it "will allow #setup_fixture to run successfully", if: Rails.version.to_f > 6.0 do
it "will allow #setup_fixture to run successfully", skip: Rails.version.to_f <= 6.0 do
group = RSpec::Core::ExampleGroup.describe do
include FixtureSupport

Expand Down
2 changes: 1 addition & 1 deletion spec/sanity_check_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def with_clean_env
end
end

it "passes when libraries are required", unless: RSpec::Support::Ruby.jruby? do
it "passes when libraries are required", skip: RSpec::Support::Ruby.jruby? do
script = tmp_root.join("pass_sanity_check")
File.open(script, "w") do |f|
f.write <<-EOF.gsub(/^\s+\|/, '')
Expand Down

0 comments on commit 8b7d67d

Please sign in to comment.