Skip to content

Commit

Permalink
These tests are better covered by the existing unit tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
hunner committed Jan 27, 2015
1 parent 6e56c07 commit e33e0ee
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions spec/acceptance/ntp_install_spec.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
require 'spec_helper_acceptance'

packagemanage = true

case fact('osfamily')
when 'FreeBSD'
packagename = 'net/ntp'
Expand Down Expand Up @@ -32,9 +30,9 @@
end

describe 'ntp::install class', :unless => UNSUPPORTED_PLATFORMS.include?(fact('osfamily')) do
it 'installs the package when package_manage is set to true' do
it 'installs the package' do
apply_manifest(%{
class { 'ntp': package_manage => true }
class { 'ntp': }
}, :catch_failures => true)
end

Expand All @@ -43,10 +41,4 @@ class { 'ntp': package_manage => true }
it { should be_installed }
end
end

it 'does not install the package when package_manage is set to false' do
apply_manifest(%{
class { 'ntp': package_manage => false }
}, :catch_changes => true)
end
end

0 comments on commit e33e0ee

Please sign in to comment.