Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Rails 3.0.7] When using rake test, default log written is development one #1491

Closed
hartator opened this issue Jun 5, 2011 · 2 comments
Closed

Comments

@hartator
Copy link

hartator commented Jun 5, 2011

Hey to all,

Tested on two computers (one dev. under Macosx and a production server on FreeBSD). Using Rails 3.0.7 and ruby 1.9.2. Tested on brand new apps.

When running rake test, development logs are written. Have to use rake test RAILS_ENV="test" to see the test logs written. I was thinking it was a normal behavior, apparently not.

Anyway, great job everyone!

@josevalim
Copy link
Contributor

Yes, all rake tasks by default use development. This is the reason the rake test internally starts other tasks manually setting RAILS_ENV to test.

@hartator
Copy link
Author

hartator commented Jun 7, 2011

Ok, thanks for the response. Great job man.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants