(CONT-773) Rubocop Manual Fix 1 - RSpec/MultipleExpectations
authordavid22swan <david.swan@puppet.com>
Fri, 21 Apr 2023 12:35:15 +0000 (13:35 +0100)
committerdavid22swan <david.swan@puppet.com>
Fri, 21 Apr 2023 12:35:15 +0000 (13:35 +0100)
.rubocop_todo.yml
spec/unit/puppet/provider/apt_key_spec.rb

index b938048e16574bbf4b41dd5da884f2731c7496e0..8aff4598c95ec5b57dd3e39d688d9d723c33bf79 100644 (file)
@@ -240,10 +240,6 @@ RSpec/LeakyConstantDeclaration:
     - 'spec/defines/source_compat_spec.rb'
     - 'spec/defines/source_spec.rb'
 
-# Offense count: 4
-RSpec/MultipleExpectations:
-  Max: 5
-
 # Offense count: 3
 # Configuration parameters: AllowSubject.
 RSpec/MultipleMemoizedHelpers:
index b89581701410e359c358dc4b0cba956c7a343f12..970f7e148e78acb71dd9ad37d6186687265c4c48 100644 (file)
@@ -43,7 +43,7 @@ OUTPUT
         ['adv', '--no-tty', '--list-keys', '--with-colons', '--fingerprint', '--fixed-list-mode'],
       ).and_return(command_output)
     end
-    it 'returns 2 resources' do
+    it 'returns 2 resources' do # rubocop:disable RSpec/MultipleExpectations
       expect(described_class.instances.size).to eq(2)
       expect(described_class.instances[0].name).to eq('630239CC130E1A7FD81A27B140976EAF437D05B5')
       expect(described_class.instances[0].id).to eq('40976EAF437D05B5')
@@ -88,7 +88,7 @@ OUTPUT
       expect(provider).to be_exist
     end
 
-    it 'apt_key with content set' do
+    it 'apt_key with content set' do # rubocop:disable RSpec/MultipleExpectations
       expect(described_class).to receive(:apt_key).with(array_including('add', kind_of(String)))
       resource = Puppet::Type::Apt_key.new(name: 'gsd',
                                            id: 'C105B9DE',
@@ -102,7 +102,7 @@ OUTPUT
       expect(provider).to be_exist
     end
 
-    it 'apt_key with source set' do
+    it 'apt_key with source set' do # rubocop:disable RSpec/MultipleExpectations
       expect(described_class).to receive(:apt_key).with(array_including('add', kind_of(String)))
       resource = Puppet::Type::Apt_key.new(name: 'gsd',
                                            id: 'C105B9DE',
@@ -116,7 +116,7 @@ OUTPUT
       expect(provider).to be_exist
     end
 
-    it 'apt_key with source and weak ssl verify set' do
+    it 'apt_key with source and weak ssl verify set' do # rubocop:disable RSpec/MultipleExpectations
       expect(described_class).to receive(:apt_key).with(array_including('add', kind_of(String)))
       resource = Puppet::Type::Apt_key.new(name: 'gsd',
                                            id: 'C105B9DE',