Skip to content

Commit

Permalink
Add RSpec CLI configuration file
Browse files Browse the repository at this point in the history
- enable color
- use documentation format
- require spec_helper
  • Loading branch information
ncs-alane committed Feb 14, 2017
1 parent 52cb3d0 commit ff06d9e
Show file tree
Hide file tree
Showing 10 changed files with 1 addition and 18 deletions.
1 change: 1 addition & 0 deletions .rspec
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--color --format documentation --require spec_helper
2 changes: 0 additions & 2 deletions spec/recipes/default_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
# limitations under the License.
#

require_relative '../spec_helper'

describe 'os-hardening::default' do
# converge
cached(:chef_run) do
Expand Down
2 changes: 0 additions & 2 deletions spec/recipes/limits_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
# limitations under the License.
#

require_relative '../spec_helper'

describe 'os-hardening::limits' do
cached(:chef_run) do
ChefSpec::ServerRunner.new.converge(described_recipe)
Expand Down
2 changes: 0 additions & 2 deletions spec/recipes/login_defs_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
# limitations under the License.
#

require_relative '../spec_helper'

describe 'os-hardening::login_defs' do
cached(:chef_run) do
ChefSpec::ServerRunner.new do |node|
Expand Down
2 changes: 0 additions & 2 deletions spec/recipes/minimize_access_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
# limitations under the License.
#

require_relative '../spec_helper'

describe 'os-hardening::minimize_access' do
before do
stub_command("find /usr/local/sbin -perm -go+w -type f | wc -l | egrep '^0$'").and_return(false)
Expand Down
2 changes: 0 additions & 2 deletions spec/recipes/pam_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
# limitations under the License.
#

require_relative '../spec_helper'

describe 'os-hardening::pam' do
cached(:chef_run) do
ChefSpec::ServerRunner.new.converge(described_recipe)
Expand Down
2 changes: 0 additions & 2 deletions spec/recipes/profile_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
# limitations under the License.
#

require_relative '../spec_helper'

describe 'os-hardening::profile' do
cached(:chef_run) do
ChefSpec::ServerRunner.new.converge(described_recipe)
Expand Down
2 changes: 0 additions & 2 deletions spec/recipes/securetty_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
# limitations under the License.
#

require_relative '../spec_helper'

describe 'os-hardening::securetty' do
cached(:chef_run) do
ChefSpec::ServerRunner.new.converge(described_recipe)
Expand Down
2 changes: 0 additions & 2 deletions spec/recipes/suid_sgid_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
# limitations under the License.
#

require_relative '../spec_helper'

describe 'os-hardening::suid_sgid' do
cached(:chef_run) do
ChefSpec::ServerRunner.new.converge(described_recipe)
Expand Down
2 changes: 0 additions & 2 deletions spec/recipes/sysctl_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
# limitations under the License.
#

require_relative '../spec_helper'

describe 'os-hardening::sysctl' do
context 'intel' do
cached(:intel_run) do
Expand Down

0 comments on commit ff06d9e

Please sign in to comment.