aboutsummaryrefslogtreecommitdiffstats
path: root/actioncable/test
diff options
context:
space:
mode:
authorVipul A M <vipulnsward@gmail.com>2016-04-15 16:03:21 +0530
committerVipul A M <vipulnsward@gmail.com>2016-04-15 16:03:21 +0530
commit02a31cfdd14be367986b4cf0833cf10d8db5a2c9 (patch)
tree82241927433cfd235288de7d6e5864f5f9961e8c /actioncable/test
parenta2de667b2eb97b387a9067277ab0829542f24841 (diff)
downloadrails-02a31cfdd14be367986b4cf0833cf10d8db5a2c9.tar.gz
rails-02a31cfdd14be367986b4cf0833cf10d8db5a2c9.tar.bz2
rails-02a31cfdd14be367986b4cf0833cf10d8db5a2c9.zip
- Fixed ActionCable::Connection::ClientSocketTest that was overriding ActionCable::Connection::StreamTest test name
- Only add attr_readers for required attributes
Diffstat (limited to 'actioncable/test')
-rw-r--r--actioncable/test/connection/client_socket_test.rb5
-rw-r--r--actioncable/test/connection/stream_test.rb3
2 files changed, 3 insertions, 5 deletions
diff --git a/actioncable/test/connection/client_socket_test.rb b/actioncable/test/connection/client_socket_test.rb
index dd730e348f..4af071b4da 100644
--- a/actioncable/test/connection/client_socket_test.rb
+++ b/actioncable/test/connection/client_socket_test.rb
@@ -1,10 +1,9 @@
require 'test_helper'
require 'stubs/test_server'
-class ActionCable::Connection::StreamTest < ActionCable::TestCase
+class ActionCable::Connection::ClientSocketTest < ActionCable::TestCase
class Connection < ActionCable::Connection::Base
- attr_reader :websocket, :subscriptions, :message_buffer, :connected
- attr_reader :errors
+ attr_reader :connected, :websocket, :errors
def initialize(*)
super
diff --git a/actioncable/test/connection/stream_test.rb b/actioncable/test/connection/stream_test.rb
index d5aad63648..a7a61d8d6f 100644
--- a/actioncable/test/connection/stream_test.rb
+++ b/actioncable/test/connection/stream_test.rb
@@ -3,8 +3,7 @@ require 'stubs/test_server'
class ActionCable::Connection::StreamTest < ActionCable::TestCase
class Connection < ActionCable::Connection::Base
- attr_reader :websocket, :subscriptions, :message_buffer, :connected
- attr_reader :errors
+ attr_reader :connected, :websocket, :errors
def initialize(*)
super