1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Set RACK_ENV to nil in the dbconsole test

This will fix the travis-ci build
This commit is contained in:
Rafael Mendonça França 2012-05-30 23:29:47 -03:00
parent 3015649783
commit 9a30d82d45

View file

@ -31,6 +31,7 @@ class Rails::DBConsoleTest < ActiveSupport::TestCase
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"