I have unit tests set up with “self.use_transactional_fixtures =
true”, so each test should roll back.
Run individually, all my tests succeed. But running “rake
test:units”, I get the below error in 5 test cases. I’m not sure how
to solve this since I’m not sure how to debug tasks run thru rake. Any
ideas are appreciated.
ActiveRecord::RecordInvalid: Validation failed: Orders is invalid
save_without _transactions!' /var/lib/gems/1.8/gems/activerecord-1.15.3/lib/active_record/ transactions.rb:133:insave!’
transaction' /var/lib/gems/1.8/gems/activerecord-1.15.3/lib/active_record/ transactions.rb:95:intransaction’
transaction ' /var/lib/gems/1.8/gems/activerecord-1.15.3/lib/active_record/ transactions.rb:133:insave!’