index harvests into ES during harvests#index spec

This commit is contained in:
Brenda Wallace committed 2019-12-22 15:46:29 +13:00
1 parent c79e83c26a
commit 4b9863a3e6
1 file changed
+6 -1
@@ -9,10 +9,14 @@ describe "browse harvests" do
context 'signed in' do
include_context 'signed in member'
describe 'blank optional fields' do
let!(:harvest) { create :harvest, :no_description }
before { visit harvests_path }
before do
Harvest.reindex
visit harvests_path
end
it 'read more' do
expect(subject).not_to have_link "Read more"
@@ -23,6 +27,7 @@ describe "browse harvests" do
let!(:harvest) { create :harvest, :long_description }
before do
Harvest.reindex
visit harvests_path
end