Use proper indentation for test values

Co-authored-by: Georg Gadinger <nilsding@nilsding.org>
This commit is contained in:
Andreas Nedbal 2022-01-10 22:27:31 +01:00 committed by Andreas Nedbal
parent ba280f7996
commit e8d3b9629d
1 changed files with 24 additions and 24 deletions

View File

@ -14,7 +14,7 @@ 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)
expect(subject).to eq(<<~EOS.chomp)
<meta property="og:title" content="Cunes" />
<meta property="og:type" content="profile" />
<meta property="og:image" content="http://test.host/images/large/no_avatar.png" />
@ -37,7 +37,7 @@ EOS
subject { user_twitter_card(user) }
it 'should generate a matching OpenGraph structure for a user' do
expect(subject).to eq(<<-EOS.chomp)
expect(subject).to eq(<<~EOS.chomp)
<meta name="twitter:card" content="summary" />
<meta name="twitter:site" content="@retrospring" />
<meta name="twitter:title" content="Ask me anything!" />
@ -62,7 +62,7 @@ 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)
expect(subject).to eq(<<~EOS.chomp)
<meta property="og:title" content="raccoons answered: #{answer.question.content}" />
<meta property="og:type" content="article" />
<meta property="og:image" content="http://test.host/images/large/no_avatar.png" />