Change "background" to "before"

This commit is contained in:
Brenda Wallace
2019-04-01 22:33:33 +13:00
parent 4ba5319ba8
commit 495002d8b9
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -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']")