aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/env_helpers.rb
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2016-08-06 19:16:09 +0200
committerXavier Noria <fxn@hashref.com>2016-08-06 19:16:09 +0200
commit783763bde97bea3d0c200038453008a8cfff1e88 (patch)
tree898d547f9d4c4e767362e6c6dc722b98fec4c07b /railties/test/env_helpers.rb
parent69ab3eb57e8387b0dd9d672b5e8d9185395baa03 (diff)
downloadrails-783763bde97bea3d0c200038453008a8cfff1e88.tar.gz
rails-783763bde97bea3d0c200038453008a8cfff1e88.tar.bz2
rails-783763bde97bea3d0c200038453008a8cfff1e88.zip
applies new string literal convention in railties/test
The current code base is not uniform. After some discussion, we have chosen to go with double quotes by default.
Diffstat (limited to 'railties/test/env_helpers.rb')
-rw-r--r--railties/test/env_helpers.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/railties/test/env_helpers.rb b/railties/test/env_helpers.rb
index 330fe150ca..68366b336f 100644
--- a/railties/test/env_helpers.rb
+++ b/railties/test/env_helpers.rb
@@ -1,12 +1,12 @@
-require 'rails'
+require "rails"
module EnvHelpers
private
def with_rails_env(env)
Rails.instance_variable_set :@_env, nil
- switch_env 'RAILS_ENV', env do
- switch_env 'RACK_ENV', nil do
+ switch_env "RAILS_ENV", env do
+ switch_env "RACK_ENV", nil do
yield
end
end
@@ -14,8 +14,8 @@ module EnvHelpers
def with_rack_env(env)
Rails.instance_variable_set :@_env, nil
- switch_env 'RACK_ENV', env do
- switch_env 'RAILS_ENV', nil do
+ switch_env "RACK_ENV", env do
+ switch_env "RAILS_ENV", nil do
yield
end
end