From 4b9863a3e658ea0e448c4645a372f977e62bfc95 Mon Sep 17 00:00:00 2001 From: Brenda Wallace Date: Sun, 22 Dec 2019 15:46:29 +1300 Subject: [PATCH] index harvests into ES during harvests#index spec --- spec/features/harvests/browse_harvests_spec.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/spec/features/harvests/browse_harvests_spec.rb b/spec/features/harvests/browse_harvests_spec.rb index 2ce14f4a1..299d68cc8 100644 --- a/spec/features/harvests/browse_harvests_spec.rb +++ b/spec/features/harvests/browse_harvests_spec.rb @@ -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