aboutsummaryrefslogtreecommitdiffstats
path: root/actioncable/test/channel/rejection_test.rb
diff options
context:
space:
mode:
authorJeremy Daer <jeremydaer@gmail.com>2016-03-31 07:08:49 -0700
committerJeremy Daer <jeremydaer@gmail.com>2016-03-31 07:08:49 -0700
commit9a83ef38912063db127a3918b0f155d5d3acfe3b (patch)
treee6225bc33dcc1dcefdfefca4537bde07bc8df94a /actioncable/test/channel/rejection_test.rb
parent903f447e436a7c909c3afc552f27bbbc1b4770c8 (diff)
parentb168eb5819fa5fea940c9865d5c9a3ec5ba2a7ec (diff)
downloadrails-9a83ef38912063db127a3918b0f155d5d3acfe3b.tar.gz
rails-9a83ef38912063db127a3918b0f155d5d3acfe3b.tar.bz2
rails-9a83ef38912063db127a3918b0f155d5d3acfe3b.zip
Merge pull request #24233 from jeremy/cable/encoding
Cable message encoding
Diffstat (limited to 'actioncable/test/channel/rejection_test.rb')
-rw-r--r--actioncable/test/channel/rejection_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actioncable/test/channel/rejection_test.rb b/actioncable/test/channel/rejection_test.rb
index aa93396d44..15db57d6ba 100644
--- a/actioncable/test/channel/rejection_test.rb
+++ b/actioncable/test/channel/rejection_test.rb
@@ -18,7 +18,7 @@ class ActionCable::Channel::RejectionTest < ActiveSupport::TestCase
@connection.expects(:subscriptions).returns mock().tap { |m| m.expects(:remove_subscription).with instance_of(SecretChannel) }
@channel = SecretChannel.new @connection, "{id: 1}", { id: 1 }
- expected = ActiveSupport::JSON.encode "identifier" => "{id: 1}", "type" => "reject_subscription"
+ expected = { "identifier" => "{id: 1}", "type" => "reject_subscription" }
assert_equal expected, @connection.last_transmission
end