diff options
author | Alexander Momchilov <alexander.momchilov@shopify.com> | 2022-07-22 16:09:38 -0400 |
---|---|---|
committer | Alexander Momchilov <alexander.momchilov@shopify.com> | 2022-07-27 15:25:26 -0400 |
commit | 42b43de997f9c19dbd9f204f4399c02e74a4bf03 (patch) | |
tree | 7333891c3f24ed0d211540899ec58c62983f22fc /test | |
parent | 5f08137ae6db1cdcea2e631f58a8d1bb4e73d340 (diff) | |
download | psych-42b43de997f9c19dbd9f204f4399c02e74a4bf03.tar.gz |
Update to squiggly heredocs in the file
Diffstat (limited to 'test')
-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 e5392dc..88b520e 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 |