aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/commands/server_test.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/commands/server_test.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/commands/server_test.rb')
-rw-r--r--railties/test/commands/server_test.rb30
1 files changed, 15 insertions, 15 deletions
diff --git a/railties/test/commands/server_test.rb b/railties/test/commands/server_test.rb
index b9a48bbf98..c1ec73d95c 100644
--- a/railties/test/commands/server_test.rb
+++ b/railties/test/commands/server_test.rb
@@ -1,6 +1,6 @@
-require 'abstract_unit'
-require 'env_helpers'
-require 'rails/commands/server'
+require "abstract_unit"
+require "env_helpers"
+require "rails/commands/server"
class Rails::ServerTest < ActiveSupport::TestCase
include EnvHelpers
@@ -8,14 +8,14 @@ class Rails::ServerTest < ActiveSupport::TestCase
def test_environment_with_server_option
args = ["thin", "-e", "production"]
options = Rails::Server::Options.new.parse!(args)
- assert_equal 'production', options[:environment]
- assert_equal 'thin', options[:server]
+ assert_equal "production", options[:environment]
+ assert_equal "thin", options[:server]
end
def test_environment_without_server_option
args = ["-e", "production"]
options = Rails::Server::Options.new.parse!(args)
- assert_equal 'production', options[:environment]
+ assert_equal "production", options[:environment]
assert_nil options[:server]
end
@@ -23,23 +23,23 @@ class Rails::ServerTest < ActiveSupport::TestCase
args = ["thin"]
options = Rails::Server::Options.new.parse!(args)
assert_nil options[:environment]
- assert_equal 'thin', options[:server]
+ assert_equal "thin", options[:server]
end
def test_environment_with_rails_env
with_rack_env nil do
- with_rails_env 'production' do
+ with_rails_env "production" do
server = Rails::Server.new
- assert_equal 'production', server.options[:environment]
+ assert_equal "production", server.options[:environment]
end
end
end
def test_environment_with_rack_env
with_rails_env nil do
- with_rack_env 'production' do
+ with_rack_env "production" do
server = Rails::Server.new
- assert_equal 'production', server.options[:environment]
+ assert_equal "production", server.options[:environment]
end
end
end
@@ -90,25 +90,25 @@ class Rails::ServerTest < ActiveSupport::TestCase
options = Rails::Server::Options.new.parse!(args)
assert_equal false, options[:log_stdout]
- with_rack_env 'development' do
+ with_rack_env "development" do
args = []
options = Rails::Server::Options.new.parse!(args)
assert_equal true, options[:log_stdout]
end
- with_rack_env 'production' do
+ with_rack_env "production" do
args = []
options = Rails::Server::Options.new.parse!(args)
assert_equal false, options[:log_stdout]
end
- with_rails_env 'development' do
+ with_rails_env "development" do
args = []
options = Rails::Server::Options.new.parse!(args)
assert_equal true, options[:log_stdout]
end
- with_rails_env 'production' do
+ with_rails_env "production" do
args = []
options = Rails::Server::Options.new.parse!(args)
assert_equal false, options[:log_stdout]