mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-10-27 17:28:26 -04:00
remove extra index runs, use search:true from spec helper
This commit is contained in:
1 parent
ee4aa4dec3
commit
f3ffd6c086
1 file changed
+3
-9
@@ -2,7 +2,7 @@
|
||||
|
||||
require 'rails_helper'
|
||||
|
||||
describe "browse harvests" do
|
||||
describe "browse harvests", :search do
|
||||
subject { page }
|
||||
|
||||
let!(:harvest) { create :harvest, owner: member }
|
||||
@@ -13,10 +13,7 @@ describe "browse harvests" do
|
||||
describe 'blank optional fields' do
|
||||
let!(:harvest) { create :harvest, :no_description }
|
||||
|
||||
before do
|
||||
Harvest.reindex
|
||||
visit harvests_path
|
||||
end
|
||||
before { visit harvests_path }
|
||||
|
||||
it 'read more' do
|
||||
expect(subject).not_to have_link "Read more"
|
||||
@@ -26,10 +23,7 @@ describe "browse harvests" do
|
||||
describe "filled in optional fields" do
|
||||
let!(:harvest) { create :harvest, :long_description }
|
||||
|
||||
before do
|
||||
Harvest.reindex
|
||||
visit harvests_path
|
||||
end
|
||||
before { visit harvests_path }
|
||||
|
||||
it 'links to #show' do
|
||||
expect(subject).to have_link harvest.crop.name, href: harvest_path(harvest)
|
||||
|
||||
Reference in new issue
Block a user