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:
Jonathan Druart 2021-02-17 09:20:59 +01:00
parent aba8a17713
commit 02b056508d
1 changed files with 1 additions and 1 deletions

View File

@ -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/,