Skip to content

Commit

Permalink
rubocop: autofix
Browse files Browse the repository at this point in the history
  • Loading branch information
bastelfreak authored and jlindquist-godaddy committed Jan 31, 2019
1 parent 7941589 commit 7bf2b12
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions spec/acceptance/class_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@
end

context 'set global_config_entry secret', if: fact('os.family') == 'RedHat' do
let (:pp) { "class { 'nodejs': }; nodejs::npm::global_config_entry { '//path.to.registry/:_secret': ensure => present, value => 'cGFzc3dvcmQ=', require => Package[nodejs],}" }
let :pp do
"class { 'nodejs': }; nodejs::npm::global_config_entry { '//path.to.registry/:_secret': ensure => present, value => 'cGFzc3dvcmQ=', require => Package[nodejs],}"
end

it_behaves_like 'an idempotent resource'

Expand All @@ -48,8 +50,8 @@
end

describe 'npm config' do
it ('contains the global_config_entry secret') do
npm_output = shell("cat $(/usr/bin/npm config get globalconfig)")
it 'contains the global_config_entry secret' do
npm_output = shell('cat $(/usr/bin/npm config get globalconfig)')
expect(npm_output.stdout).to match '//path.to.registry/:_secret="cGFzc3dvcmQ="'
end
end
Expand Down

0 comments on commit 7bf2b12

Please sign in to comment.