From 1ea5257da40758a2bd20484c947fd08a804ef79e Mon Sep 17 00:00:00 2001 From: Taylor Griffin Date: Fri, 23 Jan 2015 09:56:23 +1100 Subject: [PATCH] include sci names in create crop feature spec --- spec/features/crops/crop_wranglers_spec.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spec/features/crops/crop_wranglers_spec.rb b/spec/features/crops/crop_wranglers_spec.rb index 26259e3a9..0e0b08fbe 100644 --- a/spec/features/crops/crop_wranglers_spec.rb +++ b/spec/features/crops/crop_wranglers_spec.rb @@ -43,8 +43,10 @@ feature "crop wranglers" do click_link 'Add Crop' fill_in 'Name', with: "aubergine" fill_in 'Wikipedia URL', with: "http://en.wikipedia.org/wiki/Maize" + fill_in 'crop_scientific_names_attributes_0_scientific_name', with: "planticus maximus" click_on 'Save' expect(page).to have_content 'Crop was successfully created' + expect(page).to have_content 'planticus maximus' end end