Reindex plantings in spec

This commit is contained in:
Brenda Wallace
2019-12-20 16:21:23 +13:00
parent e31f6a7c36
commit ef8ec3c603

View File

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