Fix Style/OptionalBooleanParameter
cop (#34968)
This commit is contained in:
parent
a2a6117143
commit
dc2cfd50a0
14 changed files with 17 additions and 29 deletions
|
@ -23,11 +23,11 @@ RSpec.describe Admin::SystemCheck::MediaPrivacyCheck do
|
|||
|
||||
describe 'message' do
|
||||
it 'sends values to message instance' do
|
||||
allow(Admin::SystemCheck::Message).to receive(:new).with(nil, nil, nil, true)
|
||||
allow(Admin::SystemCheck::Message).to receive(:new).with(nil, nil, nil, critical: true)
|
||||
|
||||
check.message
|
||||
|
||||
expect(Admin::SystemCheck::Message).to have_received(:new).with(nil, nil, nil, true)
|
||||
expect(Admin::SystemCheck::Message).to have_received(:new).with(nil, nil, nil, critical: true)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
require 'rails_helper'
|
||||
|
||||
RSpec.describe Admin::SystemCheck::Message do
|
||||
subject(:check) { described_class.new(:key_value, :value_value, :action_value, :critical_value) }
|
||||
subject(:check) { described_class.new(:key_value, :value_value, :action_value, critical: :critical_value) }
|
||||
|
||||
it 'providers readers when initialized' do
|
||||
expect(check.key).to eq :key_value
|
||||
|
|
|
@ -127,7 +127,7 @@ RSpec.describe Admin::SystemCheck::SoftwareVersionCheck do
|
|||
check.message
|
||||
|
||||
expect(Admin::SystemCheck::Message).to have_received(:new)
|
||||
.with(:software_version_critical_check, nil, admin_software_updates_path, true)
|
||||
.with(:software_version_critical_check, nil, admin_software_updates_path, critical: true)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue