Skip to content

Commit a785198

Browse files
authored
Merge pull request #2460 from rspec/use-skip-instead-of-if-else
Use :skip instead of :if/:unless
2 parents 4fcb790 + 8b7d67d commit a785198

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

spec/rspec/rails/fixture_support_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ module RSpec::Rails
1212
end
1313
end
1414

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

spec/sanity_check_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def with_clean_env
3333
end
3434
end
3535

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

0 commit comments

Comments
 (0)