Skip to content

Commit 6a1afae

Browse files
committed
Merge pull request puppetlabs#517 from DavidS/try_get_value-acceptance
(MAINT) fix up try_get_value acceptance test
2 parents 64267eb + 5ef5c66 commit 6a1afae

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

spec/acceptance/try_get_value_spec.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33

44
describe 'try_get_value function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
55
describe 'success' do
6-
it 'try_get_valuees a value' do
6+
it 'gets a value' do
77
pp = <<-EOS
88
$data = {
99
'a' => { 'b' => 'passing'}
1010
}
1111
12-
$tests = try_get_value($a, 'a/b')
12+
$tests = try_get_value($data, 'a/b')
1313
notice(inline_template('tests are <%= @tests.inspect %>'))
1414
EOS
1515

@@ -25,11 +25,11 @@
2525
'a' => { 'b' => 'passing'}
2626
}
2727
28-
$tests = try_get_value($a, 'c/d', 'using the default value')
28+
$tests = try_get_value($data, 'c/d', 'using the default value')
2929
notice(inline_template('tests are <%= @tests.inspect %>'))
3030
EOS
3131

32-
apply_manifest(pp, :expect_failures => true) do |r|
32+
apply_manifest(pp, :catch_failures => true) do |r|
3333
expect(r.stdout).to match(/using the default value/)
3434
end
3535
end

0 commit comments

Comments
 (0)