aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/application
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2015-03-19 07:46:57 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2015-03-19 07:46:57 -0700
commit7bdc7635b885e473f6a577264fd8efad1c02174f (patch)
treed5a1331c223888514488113dfbb2358229422921 /railties/test/application
parent45786be516e13d55a1fca9a4abaddd5781209103 (diff)
parentd578cbfb5c9fa353ce041bc826e13905910e2d2a (diff)
downloadrails-7bdc7635b885e473f6a577264fd8efad1c02174f.tar.gz
rails-7bdc7635b885e473f6a577264fd8efad1c02174f.tar.bz2
rails-7bdc7635b885e473f6a577264fd8efad1c02174f.zip
Merge pull request #19404 from dmathieu/remove_rack_env
Don't fallback to RACK_ENV when RAILS_ENV is not present
Diffstat (limited to 'railties/test/application')
-rw-r--r--railties/test/application/rake/dbs_test.rb3
-rw-r--r--railties/test/application/runner_test.rb6
2 files changed, 0 insertions, 9 deletions
diff --git a/railties/test/application/rake/dbs_test.rb b/railties/test/application/rake/dbs_test.rb
index c414732f92..1da108f1e1 100644
--- a/railties/test/application/rake/dbs_test.rb
+++ b/railties/test/application/rake/dbs_test.rb
@@ -203,9 +203,7 @@ module ApplicationTests
test 'db:setup loads schema and seeds database' do
begin
@old_rails_env = ENV["RAILS_ENV"]
- @old_rack_env = ENV["RACK_ENV"]
ENV.delete "RAILS_ENV"
- ENV.delete "RACK_ENV"
app_file 'db/schema.rb', <<-RUBY
ActiveRecord::Schema.define(version: "1") do
@@ -225,7 +223,6 @@ module ApplicationTests
end
ensure
ENV["RAILS_ENV"] = @old_rails_env
- ENV["RACK_ENV"] = @old_rack_env
end
end
end
diff --git a/railties/test/application/runner_test.rb b/railties/test/application/runner_test.rb
index 6595c40f8b..b59202e68e 100644
--- a/railties/test/application/runner_test.rb
+++ b/railties/test/application/runner_test.rb
@@ -79,11 +79,5 @@ module ApplicationTests
assert_match "production", Dir.chdir(app_path) { `bundle exec rails runner "puts Rails.env"` }
end
end
-
- def test_environment_with_rack_env
- with_rack_env "production" do
- assert_match "production", Dir.chdir(app_path) { `bundle exec rails runner "puts Rails.env"` }
- end
- end
end
end