Browse Source

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>
21.05.x
Jonathan Druart 5 months ago
parent
commit
02b056508d
  1. 2
      t/Context.t

2
t/Context.t

@ -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…
Cancel
Save