diff options
author | Xavier Noria <fxn@hashref.com> | 2016-08-06 19:15:15 +0200 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2016-08-06 19:15:15 +0200 |
commit | f8477f13bfe554064bd25a57e5289b4ebaabb504 (patch) | |
tree | c093f4e8c108a6ac0e6d27c5d6649eab97cc48bb /actioncable/test/stubs | |
parent | b678eb57e93423ac8e2a0cc0b083ce556c6fb130 (diff) | |
download | rails-f8477f13bfe554064bd25a57e5289b4ebaabb504.tar.gz rails-f8477f13bfe554064bd25a57e5289b4ebaabb504.tar.bz2 rails-f8477f13bfe554064bd25a57e5289b4ebaabb504.zip |
applies new string literal convention in actioncable/test
The current code base is not uniform. After some discussion,
we have chosen to go with double quotes by default.
Diffstat (limited to 'actioncable/test/stubs')
-rw-r--r-- | actioncable/test/stubs/room.rb | 2 | ||||
-rw-r--r-- | actioncable/test/stubs/test_connection.rb | 2 | ||||
-rw-r--r-- | actioncable/test/stubs/test_server.rb | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/actioncable/test/stubs/room.rb b/actioncable/test/stubs/room.rb index cd66a0b687..9e521cf3a6 100644 --- a/actioncable/test/stubs/room.rb +++ b/actioncable/test/stubs/room.rb @@ -1,7 +1,7 @@ class Room attr_reader :id, :name - def initialize(id, name='Campfire') + def initialize(id, name="Campfire") @id = id @name = name end diff --git a/actioncable/test/stubs/test_connection.rb b/actioncable/test/stubs/test_connection.rb index 885450dda6..cd2e219d88 100644 --- a/actioncable/test/stubs/test_connection.rb +++ b/actioncable/test/stubs/test_connection.rb @@ -1,4 +1,4 @@ -require 'stubs/user' +require "stubs/user" class TestConnection attr_reader :identifiers, :logger, :current_user, :server, :transmissions diff --git a/actioncable/test/stubs/test_server.rb b/actioncable/test/stubs/test_server.rb index b86f422a13..f1b194de12 100644 --- a/actioncable/test/stubs/test_server.rb +++ b/actioncable/test/stubs/test_server.rb @@ -1,4 +1,4 @@ -require 'ostruct' +require "ostruct" class TestServer include ActionCable::Server::Connections @@ -10,7 +10,7 @@ class TestServer @logger = ActiveSupport::TaggedLogging.new ActiveSupport::Logger.new(StringIO.new) @config = OpenStruct.new(log_tags: [], subscription_adapter: subscription_adapter) - @config.use_faye = ENV['FAYE'].present? + @config.use_faye = ENV["FAYE"].present? @config.client_socket_class = if @config.use_faye ActionCable::Connection::FayeClientSocket else |