Displaying 1 result from an estimated 1 matches for "reservationtest".
Did you mean:
reservation_test
2013 Aug 22
1
How do I deal with ActiveRecord::RecordInvalid: Validation failed:
...the appropriate code but it is raising the
following error as opposed to just giving me an error in the object that I
can use.
ActiveRecord::RecordInvalid: Validation failed: Reservation limit reached
for this time slot
test/models/reservation_test.rb:29:in `block (2 levels) in
<class:ReservationTest>''
I was wondering if anyone can give me an ideas of how to deal with this.
My test environment is using shoulda, faker, and factory_girl
test/models/reservation_test.rb:
setup do
List.create(name: ''reservation_limit'', values: 20)
@reservation = Fa...