Skip to content

Commit 5fede72

Browse files
committed
(CONT-773) Rubocop Manual Fix 1 - RSpec/MultipleExpectations
1 parent 88a921c commit 5fede72

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

.rubocop_todo.yml

-4
Original file line numberDiff line numberDiff line change
@@ -240,10 +240,6 @@ RSpec/LeakyConstantDeclaration:
240240
- 'spec/defines/source_compat_spec.rb'
241241
- 'spec/defines/source_spec.rb'
242242

243-
# Offense count: 4
244-
RSpec/MultipleExpectations:
245-
Max: 5
246-
247243
# Offense count: 3
248244
# Configuration parameters: AllowSubject.
249245
RSpec/MultipleMemoizedHelpers:

spec/unit/puppet/provider/apt_key_spec.rb

+4-4
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
['adv', '--no-tty', '--list-keys', '--with-colons', '--fingerprint', '--fixed-list-mode'],
4444
).and_return(command_output)
4545
end
46-
it 'returns 2 resources' do
46+
it 'returns 2 resources' do # rubocop:disable RSpec/MultipleExpectations
4747
expect(described_class.instances.size).to eq(2)
4848
expect(described_class.instances[0].name).to eq('630239CC130E1A7FD81A27B140976EAF437D05B5')
4949
expect(described_class.instances[0].id).to eq('40976EAF437D05B5')
@@ -88,7 +88,7 @@
8888
expect(provider).to be_exist
8989
end
9090

91-
it 'apt_key with content set' do
91+
it 'apt_key with content set' do # rubocop:disable RSpec/MultipleExpectations
9292
expect(described_class).to receive(:apt_key).with(array_including('add', kind_of(String)))
9393
resource = Puppet::Type::Apt_key.new(name: 'gsd',
9494
id: 'C105B9DE',
@@ -102,7 +102,7 @@
102102
expect(provider).to be_exist
103103
end
104104

105-
it 'apt_key with source set' do
105+
it 'apt_key with source set' do # rubocop:disable RSpec/MultipleExpectations
106106
expect(described_class).to receive(:apt_key).with(array_including('add', kind_of(String)))
107107
resource = Puppet::Type::Apt_key.new(name: 'gsd',
108108
id: 'C105B9DE',
@@ -116,7 +116,7 @@
116116
expect(provider).to be_exist
117117
end
118118

119-
it 'apt_key with source and weak ssl verify set' do
119+
it 'apt_key with source and weak ssl verify set' do # rubocop:disable RSpec/MultipleExpectations
120120
expect(described_class).to receive(:apt_key).with(array_including('add', kind_of(String)))
121121
resource = Puppet::Type::Apt_key.new(name: 'gsd',
122122
id: 'C105B9DE',

0 commit comments

Comments
 (0)