Fix validations for creating a bike, view respond to errors

This commit is contained in:
Jason Denney
2014-02-09 18:23:35 -05:00
parent 55974feb4c
commit d0c05a0244
3 changed files with 37 additions and 29 deletions
+4
View File
@@ -23,6 +23,10 @@ feature "Bikes" do
visit new_bike_path
click_button "Add Bike"
expect(page).to have_text(:all, "is not a number")
expect(page).to have_text(:all, "is not a valid brand")
expect(page).to have_text(:all, "is too short")
expect(page).to have_text(:all, "is not a valid style")
expect(page).to have_text(:all, "is not a valid wheel size")
expect(page).to have_text(:all, "is not a valid condition")
end
end