Fixed bug in garden spec

This commit is contained in:
Brenda Wallace
2018-04-21 15:01:33 +12:00
parent 34b6b54616
commit 6077d4da34

View File

@@ -130,7 +130,7 @@ feature "Harvesting a crop", :js, :elasticsearch do
end
scenario "linking to a planting" do
expect(page).to have_content planting.to_s
expect(page).to have_content existing_planting.to_s
choose("harvest_planting_id_#{existing_planting.id}")
click_button "save"
expect(page).to have_link(href: planting_path(existing_planting))