On 15 December 2010 03:43, daze <[email protected]> wrote: > I'm having trouble testing my Rails 3 application. Unit testing > doesn't work. If I try ruby article_test.rb directly, I get a "no > such file to load" error, and if I try rake test:units or ruby unit/ > article_test.rb I get this odd "superclass mismatch for class > ArticlesController" error! > > I'm hoping I can get this settled... > My test files were generated by the generator... > > C:\Users\Family\workspace\jdrampage\test\unit>ruby article_test.rb
If you want to run a test directly like this you have to tell it to include the test directory so it can find the helpers, so from the root of your app ruby -I test test/unit/article_test.rb That is a capital i (for Include) Colin -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

