Skip to content

Commit

Permalink
Merge pull request #1395 from puppetlabs/CAT-1382-Fix-CI-Pipeline
Browse files Browse the repository at this point in the history
[CAT-1382] : Fixing CI failure due to rubocop
  • Loading branch information
ekohl authored Sep 12, 2023
2 parents abac8ae + d32162b commit 1e3884d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
8 changes: 0 additions & 8 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,14 +111,6 @@ RSpec/DescribeClass:
RSpec/ExampleLength:
Max: 9

# Offense count: 2
# Configuration parameters: Include, CustomTransform, IgnoreMethods, SpecSuffixOnly.
# Include: **/*_spec*rb*, **/spec/**/*
RSpec/FilePath:
Exclude:
- 'spec/unit/puppet/provider/file_line/ruby_spec_alter.rb'
- 'spec/unit/puppet/provider/file_line/ruby_spec_use_cases.rb'

# Offense count: 2
RSpec/LeakyConstantDeclaration:
Exclude:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@
end

context 'when match and after set' do
shared_context 'when resource_create' do
shared_context 'resource_create' do
let(:match) { '^foo2$' }
let(:after) { '^foo1$' }
let(:resource) do
Expand Down Expand Up @@ -251,7 +251,7 @@

it 'appends the specified line to the file' do
provider.create
expect(File.read(tmpfile)).to eq(content << resource[:line] << "\n")
expect(File.read(tmpfile)).to eq("#{content}#{resource[:line]}\n")
end
end
end
Expand Down Expand Up @@ -385,4 +385,5 @@
expect(File.read(tmpfile)).to eql("foo1\nfoo2\nfoo4\n")
end
end
# rubocop:enable RSpec/InstanceVariable
end

0 comments on commit 1e3884d

Please sign in to comment.