Auto corrected by following Ruby Style/UnneededCondition

This commit is contained in:
Awesome Code
2018-09-11 03:03:12 +00:00
committed by Brenda Wallace
parent ec22039fc1
commit ebe7cc3868
3 changed files with 3 additions and 3 deletions

View File

@@ -9,6 +9,6 @@ feature 'Plantings RSS feed' do
scenario 'The index title is what we expect' do
visit plantings_path(format: 'rss')
expect(page).to have_content "Recent plantings from "\
"#{@owner ? @owner : 'all members'} (#{ENV['GROWSTUFF_SITE_NAME']})"
"#{@owner || 'all members'} (#{ENV['GROWSTUFF_SITE_NAME']})"
end
end

View File

@@ -9,6 +9,6 @@ feature 'Posts RSS feed' do
scenario 'The index title is what we expect' do
visit posts_path(format: 'rss')
expect(page).to have_content "Recent posts from "\
"#{@author ? @author : 'all members'} (#{ENV['GROWSTUFF_SITE_NAME']})"
"#{@author || 'all members'} (#{ENV['GROWSTUFF_SITE_NAME']})"
end
end

View File

@@ -9,6 +9,6 @@ feature 'Seeds RSS feed' do
scenario 'The index title is what we expect' do
visit seeds_path(format: 'rss')
expect(page).to have_content "Recent seeds from "\
"#{@owner ? @owner : 'all members'} (#{ENV['GROWSTUFF_SITE_NAME']})"
"#{@owner || 'all members'} (#{ENV['GROWSTUFF_SITE_NAME']})"
end
end