Skip to content

Commit

Permalink
Update default_spec.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
Stromweld authored Jul 15, 2024
1 parent 4310061 commit e24b5d9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions spec/unit/recipes/default_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -249,15 +249,15 @@
end
end

context 'on CentOS 6' do
let(:chef_run) { ChefSpec::SoloRunner.new(platform: 'centos', version: '6').converge('ntp::default') }
context 'on CentOS 8' do
let(:chef_run) { ChefSpec::SoloRunner.new(platform: 'centos', version: '8').converge('ntp::default') }

it 'installs the ntp package' do
expect(chef_run).to install_package('ntp')
end

it 'does not install the ntpdate package' do
expect(chef_run).to_not install_package('ntpdate')
it 'installs the ntpdate package' do
expect(chef_run).to install_package('ntpdate')
end

it 'starts the ntpd service' do
Expand Down

0 comments on commit e24b5d9

Please sign in to comment.