Skip to content

Commit d4b6d79

Browse files
committed
Style/NegatedIf
1 parent 97ff6e6 commit d4b6d79

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

features/step_definitions/additional_cli_steps.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@
2222
end
2323

2424
Given /active job is available/ do
25-
if !RSpec::Rails::FeatureCheck.has_active_job?
25+
unless RSpec::Rails::FeatureCheck.has_active_job?
2626
pending "ActiveJob is not available"
2727
end
2828
end
2929

3030
Given /action cable testing is available/ do
31-
if !RSpec::Rails::FeatureCheck.has_action_cable_testing?
31+
unless RSpec::Rails::FeatureCheck.has_action_cable_testing?
3232
pending "Action Cable testing is not available"
3333
end
3434
end

spec/rspec/rails/example/view_example_group_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class ::Helper; end
4848

4949
context 'application helper exists' do
5050
before do
51-
if !Object.const_defined? 'ApplicationHelper'
51+
unless Object.const_defined? 'ApplicationHelper'
5252
module ::ApplicationHelper; end
5353
@application_helper_defined = true
5454
end

0 commit comments

Comments
 (0)