Wrangler has different name in tests, fixing failing test

This commit is contained in:
Cesy
2015-08-20 14:16:39 +00:00
parent 0e98f84da7
commit b87194336f

View File

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