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.
This commit is contained in:
Kasper Timm Hansen 2015-12-18 16:53:04 +01:00
parent d51c04fa42
commit 6a2c3c4c83

@ -62,7 +62,7 @@ def get_latest
end
def receive
@last_action = [ :recieve ]
@last_action = [ :receive ]
end
private
@ -140,7 +140,7 @@ def rm_rf
test "should dispatch recieve action when perform_action is called with empty action" do
data = { 'content' => 'hello' }
@channel.perform_action data
assert_equal [ :recieve ], @channel.last_action
assert_equal [ :receive ], @channel.last_action
end
test "transmitting data" do