From 6a2c3c4c83b03d9c508e394ab8c5a636687d11f1 Mon Sep 17 00:00:00 2001 From: Kasper Timm Hansen Date: Fri, 18 Dec 2015 16:53:04 +0100 Subject: Fix `receive` spelling and add whitespace Found `recieve` next to the correctly spelled method name, fixed it. Also we prefer a one space padding within hashes, add that. --- actioncable/test/channel/base_test.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'actioncable') diff --git a/actioncable/test/channel/base_test.rb b/actioncable/test/channel/base_test.rb index ec19d7de8e..c18ddc5218 100644 --- a/actioncable/test/channel/base_test.rb +++ b/actioncable/test/channel/base_test.rb @@ -62,7 +62,7 @@ class ActionCable::Channel::BaseTest < ActiveSupport::TestCase end def receive - @last_action = [ :recieve ] + @last_action = [ :receive ] end private @@ -138,9 +138,9 @@ class ActionCable::Channel::BaseTest < ActiveSupport::TestCase end test "should dispatch recieve action when perform_action is called with empty action" do - data = {'content' => 'hello'} + data = { 'content' => 'hello' } @channel.perform_action data - assert_equal [ :recieve ], @channel.last_action + assert_equal [ :receive ], @channel.last_action end test "transmitting data" do -- cgit v1.2.3