search for: training_ev

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

Did you mean: training_set
2005 Dec 30
2
before_create question
...tration object doesn''t get saved. So, this test code throws no exception: event = TrainingEvent.new :start_date => 19.days.from_now, :end_date => 22.days.from_now, :capacity => 10 reg = Registration.create :training_event => event, :user => @bob, :role => @community_director, :program_number => ''asdf'' assert_equal reg.errors.on(:base), ''Registration deadline has passed'' reg.save! I''m asserting that errors exist, but save! doesn''t throw an...