diff options
Diffstat (limited to 'actioncable/test')
-rw-r--r-- | actioncable/test/channel/stream_test.rb | 2 | ||||
-rw-r--r-- | actioncable/test/connection/cross_site_forgery_test.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/actioncable/test/channel/stream_test.rb b/actioncable/test/channel/stream_test.rb index 5e4e01abbf..1424ded04c 100644 --- a/actioncable/test/channel/stream_test.rb +++ b/actioncable/test/channel/stream_test.rb @@ -45,7 +45,7 @@ class ActionCable::Channel::StreamTest < ActionCable::TestCase connection = TestConnection.new connection.expects(:pubsub).returns EM::Hiredis.connect.pubsub - channel = ChatChannel.new connection, "{id: 1}", { id: 1 } + ChatChannel.new connection, "{id: 1}", { id: 1 } assert_nil connection.last_transmission EM::Timer.new(0.1) do diff --git a/actioncable/test/connection/cross_site_forgery_test.rb b/actioncable/test/connection/cross_site_forgery_test.rb index ede3057e30..d445e08f2a 100644 --- a/actioncable/test/connection/cross_site_forgery_test.rb +++ b/actioncable/test/connection/cross_site_forgery_test.rb @@ -57,7 +57,7 @@ class ActionCable::Connection::CrossSiteForgeryTest < ActionCable::TestCase private def assert_origin_allowed(origin) response = connect_with_origin origin - assert_equal -1, response[0] + assert_equal(-1, response[0]) end def assert_origin_not_allowed(origin) |