mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-05-18 21:56:55 -04:00
Wrangler has different name in tests, fixing failing test
This commit is contained in:
@@ -12,7 +12,7 @@ feature "crop wranglers", :js => true do
|
||||
|
||||
scenario "sees crop wranglers listed on the crop wrangler page" do
|
||||
visit root_path
|
||||
click_link member.login_name
|
||||
click_link wrangler.login_name
|
||||
click_link 'Crop Wrangling'
|
||||
|
||||
within '.crop_wranglers' do
|
||||
@@ -25,7 +25,7 @@ feature "crop wranglers", :js => true do
|
||||
|
||||
scenario "can see list of crops with extra detail of who created a crop" do
|
||||
visit root_path
|
||||
click_link member.login_name
|
||||
click_link wrangler.login_name
|
||||
click_link 'Crop Wrangling'
|
||||
within '#recently-added-crops' do
|
||||
expect(page).to have_content "#{crops.first.creator.login_name}"
|
||||
@@ -41,7 +41,7 @@ feature "crop wranglers", :js => true do
|
||||
|
||||
scenario "can create a new crop" do
|
||||
visit root_path
|
||||
click_link member.login_name
|
||||
click_link wrangler.login_name
|
||||
click_link 'Crop Wrangling'
|
||||
click_link 'Add Crop'
|
||||
fill_in 'Name', with: "aubergine"
|
||||
|
||||
Reference in New Issue
Block a user