File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 28
28
describe 'when failing the type assertion and passing the previous validation' do
29
29
before do
30
30
scope . expects ( :function_validate_foo ) . with ( [ '5' ] ) . once
31
- subject . func . expects ( :call_function ) . with ( 'deprecation' , 'validate_legacy' , includes ( 'expected an Integer value ' ) ) . once
31
+ subject . func . expects ( :call_function ) . with ( 'deprecation' , 'validate_legacy' , includes ( 'Integer' ) ) . once
32
32
end
33
33
it 'passes with a deprecation message' do
34
34
is_expected . to run . with_params ( 'Integer' , 'validate_foo' , '5' )
38
38
describe 'when failing the type assertion and failing the previous validation' do
39
39
before do
40
40
scope . expects ( :function_validate_foo ) . with ( [ '5' ] ) . raises ( Puppet ::ParseError , 'foo' ) . once
41
- subject . func . expects ( :call_function ) . with ( 'fail' , includes ( 'expected an Integer value ' ) ) . once
41
+ subject . func . expects ( :call_function ) . with ( 'fail' , includes ( 'Integer' ) ) . once
42
42
end
43
43
it 'fails with a helpful message' do
44
44
is_expected . to run . with_params ( 'Integer' , 'validate_foo' , '5' )
You can’t perform that action at this time.
0 commit comments