mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-10-16 12:11:50 -04:00
index crops before testing crops#index
This commit is contained in:
1 parent
97e9773c7e
commit
8c1761d40e
1 file changed
+5
-1
@@ -7,7 +7,11 @@ describe "browse crops" do
|
||||
let!(:rejected_crop) { FactoryBot.create :rejected_crop }
|
||||
|
||||
shared_examples 'shows crops' do
|
||||
before { visit crops_path }
|
||||
before do
|
||||
Crop.reindex
|
||||
visit crops_path
|
||||
end
|
||||
|
||||
it "has a form for sorting by" do
|
||||
expect(page).to have_css "select#sort"
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user