mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-05-24 08:52:14 -04:00
Change "background" to "before"
This commit is contained in:
@@ -2,7 +2,7 @@ shared_examples "append date" do
|
||||
let(:this_month) { Time.zone.today.strftime("%B") }
|
||||
let(:this_year) { Time.zone.today.strftime("%Y") }
|
||||
|
||||
background { visit path }
|
||||
before { visit path }
|
||||
|
||||
scenario "Selecting a date with datepicker" do
|
||||
click_link link_text
|
||||
|
||||
@@ -6,7 +6,7 @@ shared_examples "crop suggest" do |resource|
|
||||
let!(:tomato) { create :tomato }
|
||||
let!(:roma) { create :roma }
|
||||
|
||||
background { sync_elasticsearch [pea, pear, maize, tomato] }
|
||||
before { sync_elasticsearch [pea, pear, maize, tomato] }
|
||||
|
||||
scenario "placeholder text in crop auto suggest field" do
|
||||
expect(page).to have_selector("input[placeholder='e.g. lettuce']")
|
||||
|
||||
Reference in New Issue
Block a user