diff options
author | Kir Shatrov <shatrov@me.com> | 2017-07-16 20:10:15 +0300 |
---|---|---|
committer | Kir Shatrov <shatrov@me.com> | 2017-07-23 23:30:29 +0300 |
commit | 385825fb705446a1f11e82b65ca97a50d7e67898 (patch) | |
tree | e1a1e78c43611f7c3467380af97df34711bcb294 /actioncable/test/stubs | |
parent | 68191d0f6e8d763730a1ae3841570e11b2896272 (diff) | |
download | rails-385825fb705446a1f11e82b65ca97a50d7e67898.tar.gz rails-385825fb705446a1f11e82b65ca97a50d7e67898.tar.bz2 rails-385825fb705446a1f11e82b65ca97a50d7e67898.zip |
Use frozen string literal in actioncable/
Diffstat (limited to 'actioncable/test/stubs')
-rw-r--r-- | actioncable/test/stubs/global_id.rb | 2 | ||||
-rw-r--r-- | actioncable/test/stubs/room.rb | 2 | ||||
-rw-r--r-- | actioncable/test/stubs/test_adapter.rb | 2 | ||||
-rw-r--r-- | actioncable/test/stubs/test_connection.rb | 2 | ||||
-rw-r--r-- | actioncable/test/stubs/test_server.rb | 2 | ||||
-rw-r--r-- | actioncable/test/stubs/user.rb | 2 |
6 files changed, 12 insertions, 0 deletions
diff --git a/actioncable/test/stubs/global_id.rb b/actioncable/test/stubs/global_id.rb index 334f0d03e8..15fab6b8a7 100644 --- a/actioncable/test/stubs/global_id.rb +++ b/actioncable/test/stubs/global_id.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class GlobalID attr_reader :uri delegate :to_param, :to_s, to: :uri diff --git a/actioncable/test/stubs/room.rb b/actioncable/test/stubs/room.rb index 1664b07d12..df7236f408 100644 --- a/actioncable/test/stubs/room.rb +++ b/actioncable/test/stubs/room.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class Room attr_reader :id, :name diff --git a/actioncable/test/stubs/test_adapter.rb b/actioncable/test/stubs/test_adapter.rb index bbd142b287..c481046973 100644 --- a/actioncable/test/stubs/test_adapter.rb +++ b/actioncable/test/stubs/test_adapter.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class SuccessAdapter < ActionCable::SubscriptionAdapter::Base def broadcast(channel, payload) end diff --git a/actioncable/test/stubs/test_connection.rb b/actioncable/test/stubs/test_connection.rb index cd2e219d88..fdddd1159e 100644 --- a/actioncable/test/stubs/test_connection.rb +++ b/actioncable/test/stubs/test_connection.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "stubs/user" class TestConnection diff --git a/actioncable/test/stubs/test_server.rb b/actioncable/test/stubs/test_server.rb index 5bf2a151dc..0bc4625e28 100644 --- a/actioncable/test/stubs/test_server.rb +++ b/actioncable/test/stubs/test_server.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "ostruct" class TestServer diff --git a/actioncable/test/stubs/user.rb b/actioncable/test/stubs/user.rb index a66b4f87d5..7894d1d9ae 100644 --- a/actioncable/test/stubs/user.rb +++ b/actioncable/test/stubs/user.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class User attr_reader :name |