@@ -12,7 +12,7 @@ class AppEnvTest < ActiveSupport::TestCase
12
12
end
13
13
14
14
test "Rails.app_env is a kind of ActiveSupport::EnvironmentInquirer when APP_ENV is blank" do
15
- with_app_env ( nil ) do
15
+ with_app_env ( nil ) do
16
16
assert_kind_of ActiveSupport ::EnvironmentInquirer , Rails . app_env
17
17
end
18
18
end
@@ -42,7 +42,7 @@ class AppEnvTest < ActiveSupport::TestCase
42
42
end
43
43
44
44
test "Rails.app_env falls back to Rails.env when APP_ENV is blank but RAILS_ENV is present" do
45
- with_app_env ( nil ) do
45
+ with_app_env ( nil ) do
46
46
with_rails_env ( "foo" ) do
47
47
assert_equal "foo" , Rails . app_env
48
48
assert_equal "foo" , Rails . env
@@ -51,7 +51,7 @@ class AppEnvTest < ActiveSupport::TestCase
51
51
end
52
52
53
53
test "Rails.app_env falls back to default Rails.env when both APP_ENV and RAILS_ENV are blank" do
54
- with_app_env ( nil ) do
54
+ with_app_env ( nil ) do
55
55
with_rails_env ( nil ) do
56
56
assert_equal DEFAULT_RAILS_ENV , Rails . app_env
57
57
assert_equal DEFAULT_RAILS_ENV , Rails . env
@@ -88,7 +88,7 @@ class AppEnvTest < ActiveSupport::TestCase
88
88
end
89
89
90
90
test "Rails.app_env does not follow Rails.env changes when APP_ENV is blank but RAILS_ENV is present" do
91
- with_app_env ( nil ) do
91
+ with_app_env ( nil ) do
92
92
with_rails_env ( "foo" ) do
93
93
assert_equal "foo" , Rails . app_env
94
94
assert_equal "foo" , Rails . env
@@ -102,7 +102,7 @@ class AppEnvTest < ActiveSupport::TestCase
102
102
end
103
103
104
104
test "Rails.app_env does not follow Rails.env changes when both APP_ENV and RAILS_ENV are blank" do
105
- with_app_env ( nil ) do
105
+ with_app_env ( nil ) do
106
106
with_rails_env ( nil ) do
107
107
assert_equal DEFAULT_RAILS_ENV , Rails . app_env
108
108
assert_equal DEFAULT_RAILS_ENV , Rails . env
0 commit comments