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 2828 describe 'when failing the type assertion and passing the previous validation' do
2929 before do
3030 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
3232 end
3333 it 'passes with a deprecation message' do
3434 is_expected . to run . with_params ( 'Integer' , 'validate_foo' , '5' )
3838 describe 'when failing the type assertion and failing the previous validation' do
3939 before do
4040 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
4242 end
4343 it 'fails with a helpful message' do
4444 is_expected . to run . with_params ( 'Integer' , 'validate_foo' , '5' )
You can’t perform that action at this time.
0 commit comments