Skip to content

Commit

Permalink
Merge pull request #83 from techraf/fix-darwin-check
Browse files Browse the repository at this point in the history
Fix check for os.darwin
  • Loading branch information
artem-sidorenko authored Feb 4, 2017
2 parents b3651d9 + 92f4f33 commit 315a429
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion controls/ssh_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
it { should exist }
it { should be_file }
it { should be_owned_by 'root' }
it { should be_grouped_into os.darwin ? 'wheel' : 'root' }
it { should be_grouped_into os.darwin? ? 'wheel' : 'root' }
it { should_not be_executable }
it { should be_readable.by('owner') }
it { should be_readable.by('group') }
Expand Down
4 changes: 2 additions & 2 deletions controls/sshd_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
it { should exist }
it { should be_directory }
it { should be_owned_by 'root' }
it { should be_grouped_into os.darwin ? 'wheel' : 'root' }
it { should be_grouped_into os.darwin? ? 'wheel' : 'root' }
it { should be_executable }
it { should be_readable.by('owner') }
it { should be_readable.by('group') }
Expand All @@ -77,7 +77,7 @@
it { should exist }
it { should be_file }
it { should be_owned_by 'root' }
it { should be_grouped_into os.darwin ? 'wheel' : 'root' }
it { should be_grouped_into os.darwin? ? 'wheel' : 'root' }
it { should_not be_executable }
it { should be_readable.by('owner') }
it { should_not be_readable.by('group') }
Expand Down

0 comments on commit 315a429

Please sign in to comment.