Skip to content

Commit

Permalink
handler if/unless attached to describe blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-rock committed Jan 4, 2017
1 parent a049e69 commit 8a65817
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# read platform information, see https://github.com/chef/inspec/issues/1396
property = apache_info(File.dirname(__FILE__))

describe 'apache2::mod_cgi', :if => property[:apache][:mpm] == 'prefork' do
describe 'apache2::mod_cgi' do
expected_module = 'cgi'
subject(:available) { file("#{property[:apache][:dir]}/mods-available/#{expected_module}.load") }
it "mods-available/#{expected_module}.load is accurate" do
Expand All @@ -37,4 +37,4 @@
expect(loaded_modules.exit_status).to eq 0
expect(loaded_modules.stdout).to match(/#{expected_module}_module/)
end
end
end if property[:apache][:mpm] == 'prefork'
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# read platform information, see https://github.com/chef/inspec/issues/1396
property = apache_info(File.dirname(__FILE__))

describe 'apache2::mod_cgid', :unless => property[:apache][:mpm] == 'prefork' do
describe 'apache2::mod_cgid' do
expected_module = 'cgid'
subject(:available) { file("#{property[:apache][:dir]}/mods-available/#{expected_module}.load") }
it "mods-available/#{expected_module}.load is accurate" do
Expand All @@ -37,4 +37,4 @@
expect(loaded_modules.exit_status).to eq 0
expect(loaded_modules.stdout).to match(/#{expected_module}_module/)
end
end
end unless property[:apache][:mpm] == 'prefork'

0 comments on commit 8a65817

Please sign in to comment.