Module: RSpec::Rails::ChannelExampleGroup::ClassMethods

Defined in:
lib/rspec/rails/example/channel_example_group.rb

Overview

Class-level DSL for channel specs.

Instance Method Summary collapse

Instance Method Details

#channel_classObject



30
31
32
# File 'lib/rspec/rails/example/channel_example_group.rb', line 30

def channel_class
  described_class
end

#connection_classObject



35
36
37
38
39
# File 'lib/rspec/rails/example/channel_example_group.rb', line 35

def connection_class
  raise "Described class is not a Connection class" unless
    described_class <= ::ActionCable::Connection::Base
  described_class
end