Skip to content

Commit

Permalink
fixing the tinker / panic unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tphoney committed Apr 20, 2015
1 parent b6bb239 commit 7d30e16
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions spec/acceptance/ntp_parameters_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -139,33 +139,33 @@ class { 'ntp':
end
end

describe 'panic => false' do
it 'enables the tinker panic setting' do
describe 'panic => 0' do
it 'disables the tinker panic setting' do
pp = <<-EOS
class { 'ntp':
panic => false,
panic => 0,
}
EOS
apply_manifest(pp, :catch_failures => true)
end

describe file("#{config}") do
its(:content) { should match 'tinker panic' }
its(:content) { should match 'tinker panic 0' }
end
end

describe 'panic => true' do
it 'disables the tinker panic setting' do
describe 'panic => 1' do
it 'enables the tinker panic setting' do
pp = <<-EOS
class { 'ntp':
panic => true,
panic => 1,
}
EOS
apply_manifest(pp, :catch_failures => true)
end

describe file("#{config}") do
its(:content) { should_not match 'tinker panic 0' }
its(:content) { should match 'tinker panic 1' }
end
end

Expand Down

0 comments on commit 7d30e16

Please sign in to comment.