Module: TurboRspec::Matchers
- Defined in:
- lib/turbo_rspec/matchers.rb,
lib/turbo_rspec/matchers/have_turbo_frame.rb,
lib/turbo_rspec/matchers/have_turbo_stream.rb,
lib/turbo_rspec/matchers/have_broadcasted_turbo_stream_to.rb
Defined Under Namespace
Classes: HaveBroadcastedTurboStreamTo, HaveTurboFrame, HaveTurboStream
Instance Method Summary
collapse
Instance Method Details
#have_broadcasted_turbo_stream_to(stream_or_object) ⇒ Object
Also known as:
broadcast_turbo_stream_to
9
10
11
|
# File 'lib/turbo_rspec/matchers.rb', line 9
def have_broadcasted_turbo_stream_to(stream_or_object)
HaveBroadcastedTurboStreamTo.new(stream_or_object)
end
|
#have_turbo_frame ⇒ Object
15
16
17
|
# File 'lib/turbo_rspec/matchers.rb', line 15
def have_turbo_frame
HaveTurboFrame.new
end
|
#have_turbo_stream ⇒ Object
19
20
21
|
# File 'lib/turbo_rspec/matchers.rb', line 19
def have_turbo_stream
HaveTurboStream.new
end
|