aboutsummaryrefslogtreecommitdiffstats
path: root/actioncable/test/stubs
diff options
context:
space:
mode:
authorKir Shatrov <shatrov@me.com>2017-06-22 22:59:18 -0400
committerKir Shatrov <shatrov@me.com>2017-07-01 02:11:03 +0300
commitcfade1ec7ee7b5b51f3c1578e3474f9c156f2971 (patch)
tree5c12d112bf4d039587d712b0cae92a2d920fee23 /actioncable/test/stubs
parent5fe2a4f929fff7fa725545c47ac0f9372d8c643d (diff)
downloadrails-cfade1ec7ee7b5b51f3c1578e3474f9c156f2971.tar.gz
rails-cfade1ec7ee7b5b51f3c1578e3474f9c156f2971.tar.bz2
rails-cfade1ec7ee7b5b51f3c1578e3474f9c156f2971.zip
Enforce frozen string in Rubocop
Diffstat (limited to 'actioncable/test/stubs')
-rw-r--r--actioncable/test/stubs/global_id.rb1
-rw-r--r--actioncable/test/stubs/room.rb1
-rw-r--r--actioncable/test/stubs/test_adapter.rb1
-rw-r--r--actioncable/test/stubs/test_connection.rb1
-rw-r--r--actioncable/test/stubs/test_server.rb1
-rw-r--r--actioncable/test/stubs/user.rb1
6 files changed, 6 insertions, 0 deletions
diff --git a/actioncable/test/stubs/global_id.rb b/actioncable/test/stubs/global_id.rb
index 334f0d03e8..374503487d 100644
--- a/actioncable/test/stubs/global_id.rb
+++ b/actioncable/test/stubs/global_id.rb
@@ -1,3 +1,4 @@
+# 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..662200aa68 100644
--- a/actioncable/test/stubs/room.rb
+++ b/actioncable/test/stubs/room.rb
@@ -1,3 +1,4 @@
+# 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..0d23576d2c 100644
--- a/actioncable/test/stubs/test_adapter.rb
+++ b/actioncable/test/stubs/test_adapter.rb
@@ -1,3 +1,4 @@
+# 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..c543518929 100644
--- a/actioncable/test/stubs/test_connection.rb
+++ b/actioncable/test/stubs/test_connection.rb
@@ -1,3 +1,4 @@
+# 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..fc5b0df6bc 100644
--- a/actioncable/test/stubs/test_server.rb
+++ b/actioncable/test/stubs/test_server.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
require "ostruct"
class TestServer
diff --git a/actioncable/test/stubs/user.rb b/actioncable/test/stubs/user.rb
index a66b4f87d5..e6b917b281 100644
--- a/actioncable/test/stubs/user.rb
+++ b/actioncable/test/stubs/user.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
class User
attr_reader :name