diff --git a/spec/misc_spec.rb b/spec/misc_spec.rb index 58d5012..bbada40 100644 --- a/spec/misc_spec.rb +++ b/spec/misc_spec.rb @@ -88,23 +88,23 @@ RSpec.describe 'AwesomePrint' do it 'wraps multiline ap output with
 tag with colorized ' do
       markup = [1, :two, 'three']
-      expect(markup.ai(html: true)).to eq <<-EOS.strip_heredoc.strip
-        
[
-            [0] 1,
-            [1] :two,
-            [2] "three"
-        ]
+ expect(markup.ai(html: true)).to eq <<-EOS.strip +
[
+    [0] 1,
+    [1] :two,
+    [2] "three"
+]
EOS end it 'wraps hash ap output with only an outer
 tag' do
       markup = [{ 'hello' => 'world' }]
-      expect(markup.ai(html: true)).to eq <<-EOS.strip_heredoc.strip
-        
[
-            [0] {
-                "hello" => "world"
-            }
-        ]
+ expect(markup.ai(html: true)).to eq <<-EOS.strip +
[
+    [0] {
+        "hello" => "world"
+    }
+]
EOS end @@ -130,12 +130,12 @@ RSpec.describe 'AwesomePrint' do AwesomePrint.defaults = { indent: -2, sort_keys: true } hash = { [0, 0, 255] => :yellow, :red => 'rgb(255, 0, 0)', 'magenta' => 'rgb(255, 0, 255)' } out = hash.ai(plain: true) - expect(out).to eq <<-EOS.strip_heredoc.strip - { - [ 0, 0, 255 ] => :yellow, - "magenta" => "rgb(255, 0, 255)", - :red => "rgb(255, 0, 0)" - } + expect(out).to eq <<-EOS.strip +{ + [ 0, 0, 255 ] => :yellow, + "magenta" => "rgb(255, 0, 255)", + :red => "rgb(255, 0, 0)" +} EOS end end