Skip to content

Commit

Permalink
Fixes #36930 - Make invalid YAML test compatible with libyaml 0.2.x
Browse files Browse the repository at this point in the history
The valid {a:test} is invalid with libyaml 0.1.x but is valid with
0.2.x. This changes the test to @@ which should still raise a
Psych::SyntaxError.
  • Loading branch information
ekohl authored and evgeni committed Nov 23, 2023
1 parent 3054853 commit 19262bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/models/lookup_key_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ class LookupKeyTest < ActiveSupport::TestCase
},
{
:sc_type => 'yaml',
:value => '{a:test}',
:value => '@@',
},
{
:sc_type => 'json',
Expand Down

0 comments on commit 19262bd

Please sign in to comment.