Skip to content

Commit

Permalink
Fix syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
Greg Dubicki committed Nov 5, 2018
1 parent bfb0b44 commit 024a8b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/defines/dotfile_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@
end
context 'succeeds when set owner' do
let(:title) { '/home/someuser/.pip/pip.conf' }
let(:params) { {owner: 'someuser' } }
let(:params) { { owner: 'someuser' } }

it { is_expected.to contain_exec('create /home/someuser/.pip/pip.conf\'s parent dir').with_command('install -o someuser -g root -d /home/someuser/.pip') }
it { is_expected.to contain_file('/home/someuser/.pip/pip.conf').with_owner('someuser') }
end
context 'succeeds when set group set' do
let(:title) { '/home/someuser/.pip/pip.conf' }
let(:params) { {group: 'somegroup' } }
let(:params) { { group: 'somegroup' } }

it { is_expected.to contain_exec('create /home/someuser/.pip/pip.conf\'s parent dir').with_command('install -o root -g somegroup -d /home/someuser/.pip') }
it { is_expected.to contain_file('/home/someuser/.pip/pip.conf').with_group('somegroup') }
Expand Down

0 comments on commit 024a8b1

Please sign in to comment.