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.
33 34 35 |
# File 'lib/rspec/rails/matchers/action_cable/have_streams.rb', line 33 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.
13 14 15 |
# File 'lib/rspec/rails/matchers/action_cable/have_streams.rb', line 13 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.
19 20 21 |
# File 'lib/rspec/rails/matchers/action_cable/have_streams.rb', line 19 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.
25 26 27 28 29 |
# File 'lib/rspec/rails/matchers/action_cable/have_streams.rb', line 25 def matches?(subscription) raise(ArgumentError, "have_streams is used for negated expectations only") if no_expected? match(subscription) end |