diff --git a/actioncable/lib/action_cable/channel/test_case.rb b/actioncable/lib/action_cable/channel/test_case.rb index a26051d68752d91289429278b7ab8c962c21b0a8..dd2762ccd0a77ebf9a41a53abdba56c2207f0592 100644 --- a/actioncable/lib/action_cable/channel/test_case.rb +++ b/actioncable/lib/action_cable/channel/test_case.rb @@ -131,7 +131,7 @@ def transmit(cable_message) # # == Specifying connection identifiers # - # You need to set up your connection manually to privide values for the identifiers. + # You need to set up your connection manually to provide values for the identifiers. # To do this just use: # # stub_connection(user: users[:john]) @@ -212,7 +212,7 @@ def stub_connection(identifiers = {}) @connection = ConnectionStub.new(identifiers) end - # Subsribe to the channel under test. Optionally pass subscription parameters as a Hash. + # Subscribe to the channel under test. Optionally pass subscription parameters as a Hash. def subscribe(params = {}) @connection ||= stub_connection @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access) diff --git a/actioncable/test/channel/stream_test.rb b/actioncable/test/channel/stream_test.rb index f2fe8b4ce79fb218aab19171c7d6a91aa4865e48..9ad2213d474d2bcc7dda8645bc78bc838d60771f 100644 --- a/actioncable/test/channel/stream_test.rb +++ b/actioncable/test/channel/stream_test.rb @@ -193,7 +193,7 @@ class StreamFromTest < ActionCable::TestCase end end - test "subscription confirmation should only be sent out once with muptiple stream_from" do + test "subscription confirmation should only be sent out once with multiple stream_from" do run_in_eventmachine do connection = open_connection expected = { "identifier" => { "channel" => MultiChatChannel.name }.to_json, "type" => "confirm_subscription" }