From e8d3b9629d5e4db5b9b35393cbc2fef0082e09d1 Mon Sep 17 00:00:00 2001 From: Andreas Nedbal Date: Mon, 10 Jan 2022 22:27:31 +0100 Subject: [PATCH] Use proper indentation for test values Co-authored-by: Georg Gadinger --- .../application_helper/graph_methods_spec.rb | 48 +++++++++---------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/spec/helpers/application_helper/graph_methods_spec.rb b/spec/helpers/application_helper/graph_methods_spec.rb index e5f0da52..5a904e4a 100644 --- a/spec/helpers/application_helper/graph_methods_spec.rb +++ b/spec/helpers/application_helper/graph_methods_spec.rb @@ -14,15 +14,15 @@ describe ApplicationHelper::GraphMethods, :type => :helper do it 'should generate a matching OpenGraph structure for a user' do allow(APP_CONFIG).to receive(:[]).with('site_name').and_return('pineapplespring') - expect(subject).to eq(<<-EOS.chomp) - - - - - - - -EOS + expect(subject).to eq(<<~EOS.chomp) + + + + + + + + EOS end end end @@ -37,13 +37,13 @@ EOS subject { user_twitter_card(user) } it 'should generate a matching OpenGraph structure for a user' do - expect(subject).to eq(<<-EOS.chomp) - - - - - -EOS + expect(subject).to eq(<<~EOS.chomp) + + + + + + EOS end end end @@ -62,14 +62,14 @@ EOS it 'should generate a matching OpenGraph structure for a user' do allow(APP_CONFIG).to receive(:[]).with('site_name').and_return('pineapplespring') - expect(subject).to eq(<<-EOS.chomp) - - - - - - -EOS + expect(subject).to eq(<<~EOS.chomp) + + + + + + + EOS end end end