include sci names in create crop feature spec

This commit is contained in:
Taylor Griffin
2015-01-23 09:56:23 +11:00
parent 3c360ab1b8
commit 1ea5257da4

View File

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