Class: Katalyst::Kpop::Matchers::StreamMatcher Private

Inherits:
CapybaraMatcher
  • Object
show all
Defined in:
lib/katalyst/kpop/matchers/stream_matcher.rb

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.

Instance Attribute Summary

Attributes inherited from CapybaraMatcher

#matched

Attributes inherited from Base

#matched

Instance Method Summary collapse

Methods inherited from CapybaraMatcher

#describe_actual, #describe_expected, #description, #failure_message, #failure_message_when_negated, #match, #matches?

Methods inherited from Base

#matches?

Constructor Details

#initialize(id: "kpop", action: "update") ⇒ StreamMatcher

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.

Returns a new instance of StreamMatcher.



8
9
10
# File 'lib/katalyst/kpop/matchers/stream_matcher.rb', line 8

def initialize(id: "kpop", action: "update")
  super("turbo-stream[action='#{action}'][target='#{id}']")
end