mirror of
https://github.com/fspc/BikeShed-1.git
synced 2026-09-16 08:31:36 -04:00
Fix validations for creating a bike, view respond to errors
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user