aboutsummaryrefslogtreecommitdiffstats
path: root/test/channel
diff options
context:
space:
mode:
authorPratik Naik <pratiknaik@gmail.com>2015-10-16 18:19:35 -0500
committerPratik Naik <pratiknaik@gmail.com>2015-10-16 18:19:35 -0500
commitdf5a32dfbc94723d847aa8d8034041a2bd8751e2 (patch)
treeaf99174d6be23ad75cfdcc1bb52703294d271412 /test/channel
parent515c5b76d5c6b80e33d540376dce5412c2a7a274 (diff)
downloadrails-df5a32dfbc94723d847aa8d8034041a2bd8751e2.tar.gz
rails-df5a32dfbc94723d847aa8d8034041a2bd8751e2.tar.bz2
rails-df5a32dfbc94723d847aa8d8034041a2bd8751e2.zip
Fix stream tests
Diffstat (limited to 'test/channel')
-rw-r--r--test/channel/stream_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/channel/stream_test.rb b/test/channel/stream_test.rb
index 5914b39be0..4e0248d7b4 100644
--- a/test/channel/stream_test.rb
+++ b/test/channel/stream_test.rb
@@ -18,7 +18,7 @@ class ActionCable::Channel::StreamTest < ActionCable::TestCase
test "streaming start and stop" do
run_in_eventmachine do
- @connection.expects(:pubsub).returns mock().tap { |m| m.expects(:subscribe).with("test_room_1") }
+ @connection.expects(:pubsub).returns mock().tap { |m| m.expects(:subscribe).with("test_room_1").returns stub_everything(:pubsub) }
channel = ChatChannel.new @connection, "{id: 1}", { id: 1 }
@connection.expects(:pubsub).returns mock().tap { |m| m.expects(:unsubscribe_proc) }
@@ -29,7 +29,7 @@ class ActionCable::Channel::StreamTest < ActionCable::TestCase
test "stream_for" do
run_in_eventmachine do
EM.next_tick do
- @connection.expects(:pubsub).returns mock().tap { |m| m.expects(:subscribe).with("action_cable:channel:stream_test:chat:Room#1-Campfire") }
+ @connection.expects(:pubsub).returns mock().tap { |m| m.expects(:subscribe).with("action_cable:channel:stream_test:chat:Room#1-Campfire").returns stub_everything(:pubsub) }
end
channel = ChatChannel.new @connection, ""