Skip to content

Commit 1e3884d

Browse files
authored
Merge pull request #1395 from puppetlabs/CAT-1382-Fix-CI-Pipeline
[CAT-1382] : Fixing CI failure due to rubocop
2 parents abac8ae + d32162b commit 1e3884d

File tree

3 files changed

+3
-10
lines changed

3 files changed

+3
-10
lines changed

.rubocop_todo.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -111,14 +111,6 @@ RSpec/DescribeClass:
111111
RSpec/ExampleLength:
112112
Max: 9
113113

114-
# Offense count: 2
115-
# Configuration parameters: Include, CustomTransform, IgnoreMethods, SpecSuffixOnly.
116-
# Include: **/*_spec*rb*, **/spec/**/*
117-
RSpec/FilePath:
118-
Exclude:
119-
- 'spec/unit/puppet/provider/file_line/ruby_spec_alter.rb'
120-
- 'spec/unit/puppet/provider/file_line/ruby_spec_use_cases.rb'
121-
122114
# Offense count: 2
123115
RSpec/LeakyConstantDeclaration:
124116
Exclude:

spec/unit/puppet/provider/file_line/ruby_spec_alter.rb renamed to spec/unit/puppet/provider/file_line/ruby_alter_spec.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@
164164
end
165165

166166
context 'when match and after set' do
167-
shared_context 'when resource_create' do
167+
shared_context 'resource_create' do
168168
let(:match) { '^foo2$' }
169169
let(:after) { '^foo1$' }
170170
let(:resource) do
@@ -251,7 +251,7 @@
251251

252252
it 'appends the specified line to the file' do
253253
provider.create
254-
expect(File.read(tmpfile)).to eq(content << resource[:line] << "\n")
254+
expect(File.read(tmpfile)).to eq("#{content}#{resource[:line]}\n")
255255
end
256256
end
257257
end
@@ -385,4 +385,5 @@
385385
expect(File.read(tmpfile)).to eql("foo1\nfoo2\nfoo4\n")
386386
end
387387
end
388+
# rubocop:enable RSpec/InstanceVariable
388389
end

0 commit comments

Comments
 (0)