Skip to content
Browse files

Set RACK_ENV to nil in the dbconsole test

This will fix the travis-ci build
  • Loading branch information...
1 parent 3015649 commit 9a30d82d455a5b8578f7dfe6f5f9479fca44c78f @rafaelfranca rafaelfranca committed May 30, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 railties/test/commands/dbconsole_test.rb
View
1 railties/test/commands/dbconsole_test.rb
@@ -31,6 +31,7 @@ def test_env
assert_equal Rails::DBConsole.new.environment, "test"
ENV['RAILS_ENV'] = nil
+ ENV['RACK_ENV'] = nil
Rails.stubs(:respond_to?).with(:env).returns(false)
assert_equal Rails::DBConsole.new.environment, "development"

0 comments on commit 9a30d82

Please sign in to comment.
Something went wrong with that request. Please try again.