Kasugaijin's open-source Ruby on Rails production app that enables dog rescue organisation staff in Mexico to post dogs and receive applications for adoption from users in USA and Canada..
27
stars
9
forks
source link
Test adopted dogs can't be shown as an adoptable dog #89
adoptable_dogs_controller.rb show action will take a user to /adoptable_dogs/:id unless the dog is adopted. In that case the user is redirected with a flash.
Acceptance criteria:
test shows that trying to access show action in adoptable_dogs controller using an id of an adopted dog causes a redirect with flash.
adoptable_dogs_controller.rb
show action will take a user to/adoptable_dogs/:id
unless the dog is adopted. In that case the user is redirected with a flash.Acceptance criteria:
adoptable_dog_show_test.rb