From e33e0ee33cd3ff2919a41af7356890256a74ee73 Mon Sep 17 00:00:00 2001 From: Hunter Haugen Date: Tue, 27 Jan 2015 09:34:07 -0800 Subject: [PATCH] These tests are better covered by the existing unit tests. Fix from #233 --- spec/acceptance/ntp_install_spec.rb | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/spec/acceptance/ntp_install_spec.rb b/spec/acceptance/ntp_install_spec.rb index 03dc80b63..29aac2246 100644 --- a/spec/acceptance/ntp_install_spec.rb +++ b/spec/acceptance/ntp_install_spec.rb @@ -1,7 +1,5 @@ require 'spec_helper_acceptance' -packagemanage = true - case fact('osfamily') when 'FreeBSD' packagename = 'net/ntp' @@ -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 @@ -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