You're loading the test environment. Somewhere you have RAILS_ENV=test or 
ENV["RAILS_ENV"] = "test" or it's been exported to your shell environment for 
some reason.

Jason

On Aug 19, 2010, at 6:33 AM, Stewart wrote:

> I have not noticed this before but its a little strage. Every time I
> run a rake task the results of a test suite are displayed. EG
> 
> 
> ~/Documents/City Uni Work/Final Project/code/server (master)$ rake
> db:drop
> (in /Users/stewartmatheson/Documents/City Uni Work/Final Project/code/
> server)
> Loaded suite /Users/stewartmatheson/rails3install/bin/rake
> Started
> 
> Finished in 0.000193 seconds.
> 
> 0 tests, 0 assertions, 0 failures, 0 errors
> 
> 
> Strange right... I decided to roll a testapp to make sure it was not
> something to do with my rails installation. Its not.
> 
> ~/code/rails/testapp $ rake db:create
> (in /Users/stewartmatheson/code/rails/testapp)
> testapp_development already exists
> ~/code/rails/testapp $ rake db:migrate
> (in /Users/stewartmatheson/code/rails/testapp)
> ~/code/rails/testapp $ rake test:units
> (in /Users/stewartmatheson/code/rails/testapp)
> ~/code/rails/testapp $
> 
> 
> Does anyone have any idea why each rake task is loading test::unit ?
> Not a biggie but just had me a bit puzzled.
> 
> -- 
> 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 rubyonrails-t...@googlegroups.com.
> To unsubscribe from this group, send email to 
> rubyonrails-talk+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/rubyonrails-talk?hl=en.
> 

-- 
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 rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to