From 52fd2b86d64b8e8e360d6ec38d3dc1c889f136aa Mon Sep 17 00:00:00 2001 From: Miles Gould Date: Sat, 18 Oct 2014 18:01:54 +0100 Subject: [PATCH] Test altname deletion end-to-end. --- spec/features/crop_spec.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spec/features/crop_spec.rb b/spec/features/crop_spec.rb index d8e2f31a1..6cd26b891 100644 --- a/spec/features/crop_spec.rb +++ b/spec/features/crop_spec.rb @@ -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