Class: RSpec::Rails::Matchers::ActionCable::HaveStream Private
- Inherits:
-
Matchers::BuiltIn::BaseMatcher
- Object
- Matchers::BuiltIn::BaseMatcher
- RSpec::Rails::Matchers::ActionCable::HaveStream
- Defined in:
- lib/rspec/rails/matchers/action_cable/have_streams.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Provides the implementation for have_stream
, have_stream_for
, and have_stream_from
.
Not intended to be instantiated directly.
Instance Method Summary collapse
- #does_not_match?(subscription) ⇒ Boolean private
- #failure_message ⇒ String private
- #failure_message_when_negated ⇒ String private
- #matches?(subscription) ⇒ Boolean private
Instance Method Details
#does_not_match?(subscription) ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
31 32 33 |
# File 'lib/rspec/rails/matchers/action_cable/have_streams.rb', line 31 def does_not_match?(subscription) !match(subscription) end |
#failure_message ⇒ String
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
11 12 13 |
# File 'lib/rspec/rails/matchers/action_cable/have_streams.rb', line 11 def "expected to have #{}" end |
#failure_message_when_negated ⇒ String
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
17 18 19 |
# File 'lib/rspec/rails/matchers/action_cable/have_streams.rb', line 17 def "expected not to have #{}" end |
#matches?(subscription) ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
23 24 25 26 27 |
# File 'lib/rspec/rails/matchers/action_cable/have_streams.rb', line 23 def matches?(subscription) raise(ArgumentError, "have_streams is used for negated expectations only") if no_expected? match(subscription) end |