Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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