search for: fixtureclassnotfound

Displaying 2 results from an estimated 2 matches for "fixtureclassnotfound".

2006 Jun 07
6
I want to stick my models in a module
...changed the definition to class Trainer::Player I''ve created a models/trainer dir, test/unit/trainer, and test/fixtures/trainer. Change the PlayerTest class to be Trainer::PlayerTest. I get the following error when I try to run it: 4) Error: test_validate_range(Trainer::PlayerTest): FixtureClassNotFound: The class "Player" was not found. /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/fixtures.rb:403:in `find'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/fixtures.rb:478:in `players'' test/unit/trainer/player_...
2006 Jul 24
1
Testing w/out DB connection
I have several plain ruby classes that do nothing but implement algorithms. What is the prefferred way to run these w/out making a DB connection every time? Thanks, Dennis Byrne -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060724/5ff610dd/attachment.html