diff options
author | Alexander Momchilov <alexander.momchilov@shopify.com> | 2022-07-22 16:09:38 -0400 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2022-08-09 01:33:33 +0900 |
commit | 4b9cdf4e1cbb87c4f81edef472c586cd321e924e (patch) | |
tree | b0e7e5a6e8a9b2b9daa2cf72390fa150a92836bf /test/psych | |
parent | 38ea6b30dc409b43e4ac0758eeb352eecfb0d1da (diff) | |
download | ruby-4b9cdf4e1cbb87c4f81edef472c586cd321e924e.tar.gz |
[ruby/psych] Update to squiggly heredocs in the file
https://github.com/ruby/psych/commit/42b43de997
Diffstat (limited to 'test/psych')
-rw-r--r-- | test/psych/test_hash.rb | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/test/psych/test_hash.rb b/test/psych/test_hash.rb index e5392dc4d9..88b520ebfc 100644 --- a/test/psych/test_hash.rb +++ b/test/psych/test_hash.rb @@ -102,13 +102,13 @@ module Psych end def test_ref_append - hash = Psych.unsafe_load(<<-eoyml) ---- -foo: &foo - hello: world -bar: - <<: *foo -eoyml + hash = Psych.unsafe_load(<<~eoyml) + --- + foo: &foo + hello: world + bar: + <<: *foo + eoyml assert_equal({"foo"=>{"hello"=>"world"}, "bar"=>{"hello"=>"world"}}, hash) end @@ -157,11 +157,11 @@ eoyml pend "This Ruby implementation doesn't support string deduplication" end - hashes = Psych.load(<<-eoyml) ---- -- unique_identifier: 1 -- unique_identifier: 2 -eoyml + hashes = Psych.load(<<~eoyml) + --- + - unique_identifier: 1 + - unique_identifier: 2 + eoyml assert_same hashes[0].keys.first, hashes[1].keys.first end |