Test altname deletion end-to-end.

This commit is contained in:
Miles Gould
2014-10-18 18:01:54 +01:00
parent 110ae99d83
commit 52fd2b86d6

View File

@@ -38,6 +38,8 @@ feature "Alternate names" do
visit crop_path(alternate_eggplant.crop)
expect(page).to have_link "Delete",
href: alternate_name_path(alternate_eggplant)
within('.alternate_names') { click_on "Delete" }
expect(page).to_not have_content alternate_eggplant.name
end
scenario "Crop wranglers can add alternate names" do