diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2017-01-03 23:37:37 -0500 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2017-01-03 23:37:37 -0500 |
commit | 50cb1b697c9409e28e5e515029d6292335a24a17 (patch) | |
tree | 9537b258eb33a536dedf5fbcd86128c1dfdb2964 /railties/test | |
parent | a2b4df5b0bc2c1494665e07104cd2d8ceee08878 (diff) | |
parent | 498370c05b56ae02189466420da117b32304ddf9 (diff) | |
download | rails-50cb1b697c9409e28e5e515029d6292335a24a17.tar.gz rails-50cb1b697c9409e28e5e515029d6292335a24a17.tar.bz2 rails-50cb1b697c9409e28e5e515029d6292335a24a17.zip |
Merge pull request #27399 from sinogermany/rails-env-for-empty-string-env-vars
Rails env for empty string env vars
Diffstat (limited to 'railties/test')
-rw-r--r-- | railties/test/application/configuration_test.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/railties/test/application/configuration_test.rb b/railties/test/application/configuration_test.rb index 6ed6f0b312..01a9807b6b 100644 --- a/railties/test/application/configuration_test.rb +++ b/railties/test/application/configuration_test.rb @@ -78,6 +78,18 @@ module ApplicationTests end end + test "Rails.env falls back to development if RAILS_ENV is blank and RACK_ENV is nil" do + with_rails_env("") do + assert_equal "development", Rails.env + end + end + + test "Rails.env falls back to development if RACK_ENV is blank and RAILS_ENV is nil" do + with_rack_env("") do + assert_equal "development", Rails.env + end + end + test "By default logs tags are not set in development" do restore_default_config |