Skip to content

Commit

Permalink
Merge pull request redhat-openstack#236 from hunner/fix_233
Browse files Browse the repository at this point in the history
These tests are better covered by the existing unit tests.
  • Loading branch information
Morgan Haskel committed Jan 27, 2015
2 parents 6e56c07 + e33e0ee commit e57ad70
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 e57ad70

Please sign in to comment.