Skip to content

Commit

Permalink
FIX: for the last 3 rspec errors #121
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick Münch <[email protected]>
  • Loading branch information
atomic111 committed Jul 18, 2016
1 parent dda2e63 commit 954c08b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
supports 'redhat', '>= 5.0'
supports 'oracle', '>= 6.4'

depends 'sysctl', '>= 0.3.0'
depends 'apt'
depends 'sysctl', '<= 0.7.5'
depends 'apt', '~> 3.0.0'
depends 'yum'

recipe 'os-hardening::default', 'harden the operating system (all recipes)'
Expand Down
6 changes: 3 additions & 3 deletions spec/recipes/sysctl_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

it 'should detect intel cpu' do
intel_run.converge(described_recipe)
expect(intel_run.node['security']['cpu_vendor']).to eq('intel')
expect(intel_run.node['os-hardening']['security']['cpu_vendor']).to eq('intel')
end

end
Expand All @@ -46,7 +46,7 @@

it 'should detect amd cpu' do
amd_run.converge(described_recipe)
expect(amd_run.node['security']['cpu_vendor']).to eq('amd')
expect(amd_run.node['os-hardening']['security']['cpu_vendor']).to eq('amd')
end
end

Expand All @@ -60,7 +60,7 @@

it 'should detect intel cpu' do
fallback_run.converge(described_recipe)
expect(fallback_run.node['security']['cpu_vendor']).to eq('intel')
expect(fallback_run.node['os-hardening']['security']['cpu_vendor']).to eq('intel')
end
end
end

0 comments on commit 954c08b

Please sign in to comment.