File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 3
3
4
4
describe 'try_get_value function' , :unless => UNSUPPORTED_PLATFORMS . include? ( fact ( 'operatingsystem' ) ) do
5
5
describe 'success' do
6
- it 'try_get_valuees a value' do
6
+ it 'gets a value' do
7
7
pp = <<-EOS
8
8
$data = {
9
9
'a' => { 'b' => 'passing'}
10
10
}
11
11
12
- $tests = try_get_value($a , 'a/b')
12
+ $tests = try_get_value($data , 'a/b')
13
13
notice(inline_template('tests are <%= @tests.inspect %>'))
14
14
EOS
15
15
25
25
'a' => { 'b' => 'passing'}
26
26
}
27
27
28
- $tests = try_get_value($a , 'c/d', 'using the default value')
28
+ $tests = try_get_value($data , 'c/d', 'using the default value')
29
29
notice(inline_template('tests are <%= @tests.inspect %>'))
30
30
EOS
31
31
32
- apply_manifest ( pp , :expect_failures => true ) do |r |
32
+ apply_manifest ( pp , :catch_failures => true ) do |r |
33
33
expect ( r . stdout ) . to match ( /using the default value/ )
34
34
end
35
35
end
You can’t perform that action at this time.
0 commit comments