File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33
44describe '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
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
You can’t perform that action at this time.
0 commit comments