search for: reservation_limit

Displaying 1 result from an estimated 1 matches for "reservation_limit".

2013 Aug 22
1
How do I deal with ActiveRecord::RecordInvalid: Validation failed:
...ion_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 = FactoryGirl.build(:reservation) end should "remove unavailable times if reservation limit for time slot is full" do 20.times{ FactoryGirl.create :reservation } assert_equal false, FactoryGirl.create(:reservation), "re...