Permalink
Browse files

fix chefspec run

Signed-off-by: Patrick Münch <patrick.muench1111@gmail.com>
  • Loading branch information...
atomic111 committed Jun 22, 2016
1 parent d7b164e commit 61293614439ea82b41ecc3767a1d42c99f716cce
Showing with 8 additions and 2 deletions.
  1. +4 −1 spec/unit/recipes/default_spec.rb
  2. +4 −1 spec/unit/recipes/hardening_spec.rb
@@ -4,7 +4,10 @@
describe 'apache-hardening::default' do
let(:chef_run) { ChefSpec::SoloRunner.converge(described_recipe) }
before { allow_any_instance_of(Chef::Recipe).to receive(:search) }
let(:runner) { ChefSpec::ServerRunner.new }
let(:node) { runner.node }
let(:chef_run) { runner.converge(described_recipe) }
before do
stub_command('/usr/sbin/apache2 -t')
@@ -4,7 +4,10 @@
describe 'apache-hardening::hardening' do
let(:chef_run) { ChefSpec::SoloRunner.converge(described_recipe) }
before { allow_any_instance_of(Chef::Recipe).to receive(:search) }
let(:runner) { ChefSpec::ServerRunner.new }
let(:node) { runner.node }
let(:chef_run) { runner.converge(described_recipe) }
before do
stub_command('/usr/sbin/apache2 -t')

0 comments on commit 6129361

Please sign in to comment.