diff options
author | Jon Moss <me@jonathanmoss.me> | 2016-01-15 17:11:30 -0500 |
---|---|---|
committer | Jon Moss <me@jonathanmoss.me> | 2016-01-18 18:59:01 -0500 |
commit | bc413e814bbeafe8774b166bd2447ec84475b402 (patch) | |
tree | 584d37f9189eb260362ddef9c0bdb00b7148c005 /actioncable/test/connection | |
parent | 9631c6771061866bd89b4f632a5507c5a54603e4 (diff) | |
download | rails-bc413e814bbeafe8774b166bd2447ec84475b402.tar.gz rails-bc413e814bbeafe8774b166bd2447ec84475b402.tar.bz2 rails-bc413e814bbeafe8774b166bd2447ec84475b402.zip |
Tests passing and small refactoring
Diffstat (limited to 'actioncable/test/connection')
-rw-r--r-- | actioncable/test/connection/identifier_test.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/actioncable/test/connection/identifier_test.rb b/actioncable/test/connection/identifier_test.rb index 02e6b21845..bdc793e56d 100644 --- a/actioncable/test/connection/identifier_test.rb +++ b/actioncable/test/connection/identifier_test.rb @@ -23,12 +23,12 @@ class ActionCable::Connection::IdentifierTest < ActionCable::TestCase test "should subscribe to internal channel on open and unsubscribe on close" do run_in_eventmachine do - pubsub = mock('pubsub') - pubsub.expects(:subscribe).with('action_cable/User#lifo') - pubsub.expects(:unsubscribe_proc).with('action_cable/User#lifo', kind_of(Proc)) + adapter = mock('adapter') + adapter.expects(:subscribe).with('action_cable/User#lifo', kind_of(Proc)) + adapter.expects(:unsubscribe).with('action_cable/User#lifo', kind_of(Proc)) server = TestServer.new - server.stubs(:pubsub).returns(pubsub) + server.stubs(:adapter).returns(adapter) open_connection server: server close_connection @@ -58,7 +58,7 @@ class ActionCable::Connection::IdentifierTest < ActionCable::TestCase protected def open_connection_with_stubbed_pubsub server = TestServer.new - server.stubs(:pubsub).returns(stub_everything('pubsub')) + server.stubs(:adapter).returns(stub_everything('adapter')) open_connection server: server end |