Files
growstuff/spec/features/rss/posts_spec.rb
Brenda Wallace 2872a1c29d Wrapped all long lines.
reduced rubocop's line length limit to 120
2016-11-17 22:02:18 +13:00

15 lines
405 B
Ruby

require 'rails_helper'
feature 'Posts RSS feed' do
scenario 'The index feed exists' do
visit posts_path(format: 'rss')
expect(page.status_code).to equal 200
end
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']})"
end
end