Bug 27673: Fix t/Context.t
YAML::XS is not failing on that string, it generates 'uno - dos' => "asd" This new string is not YAML valid because of "found a tab character that violate intendation" Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
aba8a17713
commit
02b056508d
|
|
@ -42,7 +42,7 @@ subtest 'yaml_preference() tests' => sub {
|
|||
|
||||
is_deeply( $pref, $data, 'yaml_preference returns the right structure' );
|
||||
|
||||
$context->mock( 'preference', q{- uno - dos: asd} );
|
||||
$context->mock( 'preference', qq{- uno: dsa\n\t- dos: asd} );
|
||||
warning_like
|
||||
{ $pref = C4::Context->new->yaml_preference('nothing') }
|
||||
qr/^Unable to parse nothing syspref/,
|
||||
|
|
|
|||
Loading…
Reference in New Issue