From e4628a345cb0639ca7b0e7be2aea2b4785b46ef7 Mon Sep 17 00:00:00 2001 From: Hunter Haugen Date: Fri, 22 Aug 2014 14:42:15 -0700 Subject: [PATCH] Debian should fail with incorrect java_alternative --- spec/acceptance/install_spec.rb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/spec/acceptance/install_spec.rb b/spec/acceptance/install_spec.rb index e45ba6c..7371fde 100644 --- a/spec/acceptance/install_spec.rb +++ b/spec/acceptance/install_spec.rb @@ -189,7 +189,7 @@ describe 'failure cases' do end # C14717 # C14719 - it 'should work as normal when passed java_alternative and path' do + it 'should fail on debian when passed fake java_alternative and path' do pp = <<-EOS class { 'java': java_alternative => 'whatever', @@ -197,6 +197,10 @@ describe 'failure cases' do } EOS - apply_manifest(pp, :catch_failures => true) + if fact('osfamily') == 'Debian' + apply_manifest(pp, :expect_failures => true) + else + apply_manifest(pp, :catch_failures => true) + end end end