Skip to content

Commit

Permalink
Fix style violations
Browse files Browse the repository at this point in the history
  • Loading branch information
ncs-alane committed Jan 26, 2017
1 parent ad4ad4a commit a09e655
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 14 deletions.
13 changes: 7 additions & 6 deletions spec/recipes/limits_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,13 @@
subject { chef_run }

it 'creates /etc/sysconfig/init' do
is_expected
.to create_template('/etc/security/limits.d/10.hardcore.conf').with(
user: 'root',
group: 'root',
mode: '0440'
)
is_expected.to create_template(
'/etc/security/limits.d/10.hardcore.conf'
).with(
user: 'root',
group: 'root',
mode: '0440'
)
end

it 'creates /etc/security/limits.d directory' do
Expand Down
18 changes: 10 additions & 8 deletions spec/recipes/minimize_access_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,19 @@
subject { chef_run }

it 'remove write permission from /usr/local/sbin' do
is_expected
.to run_execute('remove write permission from /usr/local/sbin').with(
command: 'chmod go-w -R /usr/local/sbin'
)
is_expected.to run_execute(
'remove write permission from /usr/local/sbin'
).with(
command: 'chmod go-w -R /usr/local/sbin'
)
end

it 'remove write permission from /usr/local/bin' do
is_expected
.to run_execute('remove write permission from /usr/local/bin').with(
command: 'chmod go-w -R /usr/local/bin'
)
is_expected.to run_execute(
'remove write permission from /usr/local/bin'
).with(
command: 'chmod go-w -R /usr/local/bin'
)
end

it 'remove write permission from /usr/sbin' do
Expand Down

0 comments on commit a09e655

Please sign in to comment.