Skip to content

Commit

Permalink
Merge pull request #339 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
Ramesh7 authored Sep 11, 2023
2 parents 1bfc73b + 5bb6d1e commit 8a39ac7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .rubocop_todo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ RSpec/ExpectInHook:
# Offense count: 1
# Configuration parameters: Include, CustomTransform, IgnoreMethods, SpecSuffixOnly.
# Include: **/*_spec*rb*, **/spec/**/*
RSpec/FilePath:
RSpec/SpecFilePathSuffix:
Exclude:
- 'spec/unit/facter/choco_temp_dir.rb'

Expand Down
2 changes: 1 addition & 1 deletion spec/unit/facter/choco_temp_dir.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
end

it 'returns the TEMP directory' do
expect(PuppetX::Chocolatey::ChocolateyInstall).to receive(:temp_dir).and_return('waffles')
allow(PuppetX::Chocolatey::ChocolateyInstall).to receive(:temp_dir).and_return('waffles')

expect(fact_value).to eq('waffles')
end
Expand Down
2 changes: 1 addition & 1 deletion spec/unit/puppet/provider/chocolateysource/windows_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@
end

it 'returns nil source when element it nil' do
expect(provider_class.get_source(nil)).to be == {}
expect(provider_class.get_source(nil)).to eq({})
end

it 'converts an element to a source' do
Expand Down
2 changes: 1 addition & 1 deletion spec/unit/puppet/provider/package/chocolatey_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@
end

it 'returns nil source when element is nil' do
expect(provider.get_choco_feature(nil)).to be == {}
expect(provider.get_choco_feature(nil)).to eq({})
end

it 'converts an element to a source' do
Expand Down

0 comments on commit 8a39ac7

Please sign in to comment.