mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-10-27 17:28:26 -04:00
index harvests into ES during harvests#index spec
This commit is contained in:
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
|
||||
|
||||
|
||||
Reference in new issue
Block a user