lib/action_cable/testing/channel/test_case.rb in action-cable-testing-0.5.0 vs lib/action_cable/testing/channel/test_case.rb in action-cable-testing-0.6.0
- old
+ new
@@ -3,10 +3,13 @@
require "active_support"
require "active_support/test_case"
require "active_support/core_ext/hash/indifferent_access"
require "json"
+require "action_cable/testing/rails_six"
+using ActionCable::Testing::Rails6
+
module ActionCable
module Channel
class NonInferrableChannelError < ::StandardError
def initialize(name)
super "Unable to determine the channel to test from #{name}. " +
@@ -290,12 +293,10 @@
end
def broadcasting_for(stream_or_object)
return stream_or_object if stream_or_object.is_a?(String)
- self.class.channel_class.broadcasting_for(
- [self.class.channel_class.channel_name, stream_or_object]
- )
+ self.class.channel_class.broadcasting_for(stream_or_object)
end
end
include Behavior
end