summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTP Honey <tphoney@users.noreply.github.com>2015-09-02 13:42:11 +0100
committerTP Honey <tphoney@users.noreply.github.com>2015-09-02 13:42:11 +0100
commit6a1afae97e0451590c833acdd79fd730f49137b9 (patch)
tree97f92f5d1a70daaa8c5e308fc990d5744e8e2adf
parent64267eb6508bd910cb368bcaa00d7411458b0c44 (diff)
parent5ef5c6629fee2eecba0389eab3c3ce2f3d57d0f4 (diff)
downloadpuppet-stdlib-6a1afae97e0451590c833acdd79fd730f49137b9.tar.gz
puppet-stdlib-6a1afae97e0451590c833acdd79fd730f49137b9.tar.bz2
Merge pull request #517 from DavidS/try_get_value-acceptance
(MAINT) fix up try_get_value acceptance test
-rwxr-xr-xspec/acceptance/try_get_value_spec.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/acceptance/try_get_value_spec.rb b/spec/acceptance/try_get_value_spec.rb
index 46b1c4d..c0bf38a 100755
--- a/spec/acceptance/try_get_value_spec.rb
+++ b/spec/acceptance/try_get_value_spec.rb
@@ -3,13 +3,13 @@ require 'spec_helper_acceptance'
describe 'try_get_value function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
describe 'success' do
- it 'try_get_valuees a value' do
+ it 'gets a value' do
pp = <<-EOS
$data = {
'a' => { 'b' => 'passing'}
}
- $tests = try_get_value($a, 'a/b')
+ $tests = try_get_value($data, 'a/b')
notice(inline_template('tests are <%= @tests.inspect %>'))
EOS
@@ -25,11 +25,11 @@ describe 'try_get_value function', :unless => UNSUPPORTED_PLATFORMS.include?(fac
'a' => { 'b' => 'passing'}
}
- $tests = try_get_value($a, 'c/d', 'using the default value')
+ $tests = try_get_value($data, 'c/d', 'using the default value')
notice(inline_template('tests are <%= @tests.inspect %>'))
EOS
- apply_manifest(pp, :expect_failures => true) do |r|
+ apply_manifest(pp, :catch_failures => true) do |r|
expect(r.stdout).to match(/using the default value/)
end
end