Skip to content

Commit a451b28

Browse files
committed
Fixed tests in rails/activerecord/test/cases/connection_adapters/connection_handler_test.rb by setting the RAILS_ENV to 'default_env'
1 parent e439d83 commit a451b28

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Rakefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ AREL_PATH = Gem.loaded_specs['arel'].full_gem_path
66
# Notes for cross compile:
77
# $ gcla ; bundle install ; rake compile ; rake cross compile ; rake cross native gem
88

9+
# Since the Gemfile for this project requires, rails, it ends up causing
10+
# Rails.env to be defined, which affects some of the unit tests. We fix this
11+
# by setting the RAILS_ENV to "default_env"
12+
ENV['RAILS_ENV'] = 'default_env'
13+
914
def test_libs
1015
['lib',
1116
'test',

0 commit comments

Comments
 (0)