diff options
author | Kasper Timm Hansen <kaspth@gmail.com> | 2015-12-18 16:53:04 +0100 |
---|---|---|
committer | Kasper Timm Hansen <kaspth@gmail.com> | 2015-12-18 16:53:04 +0100 |
commit | 6a2c3c4c83b03d9c508e394ab8c5a636687d11f1 (patch) | |
tree | e8506f26c22f57e0cbac855a7ae7ba6e697e88cb /actioncable/test | |
parent | d51c04fa42ec64648239ddb2fd3a4401992a5ef3 (diff) | |
download | rails-6a2c3c4c83b03d9c508e394ab8c5a636687d11f1.tar.gz rails-6a2c3c4c83b03d9c508e394ab8c5a636687d11f1.tar.bz2 rails-6a2c3c4c83b03d9c508e394ab8c5a636687d11f1.zip |
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.
Diffstat (limited to 'actioncable/test')
-rw-r--r-- | actioncable/test/channel/base_test.rb | 6 |
1 files changed, 3 insertions, 3 deletions
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 |