Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

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

Closed
hartator opened this Issue · 2 comments

2 participants

@hartator

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
Owner

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.

@josevalim josevalim closed this
@hartator

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
Something went wrong with that request. Please try again.