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_turbo_streams.rb,
lib/turbo_rspec/matchers/have_broadcasted_turbo_stream_to.rb
Defined Under Namespace
Classes: HaveBroadcastedTurboStreamTo, HaveTurboFrame, HaveTurboStream, HaveTurboStreams
Instance Method Summary
collapse
Instance Method Details
#have_broadcasted_turbo_stream_to(stream_or_object) ⇒ Object
Also known as:
broadcast_turbo_stream_to
10
11
12
|
# File 'lib/turbo_rspec/matchers.rb', line 10
def have_broadcasted_turbo_stream_to(stream_or_object)
HaveBroadcastedTurboStreamTo.new(stream_or_object)
end
|
#have_turbo_frame ⇒ Object
16
17
18
|
# File 'lib/turbo_rspec/matchers.rb', line 16
def have_turbo_frame
HaveTurboFrame.new
end
|
#have_turbo_stream ⇒ Object
Also known as:
assert_no_turbo_stream
20
21
22
|
# File 'lib/turbo_rspec/matchers.rb', line 20
def have_turbo_stream
HaveTurboStream.new
end
|
#have_turbo_streams(*matchers) ⇒ Object
26
27
28
|
# File 'lib/turbo_rspec/matchers.rb', line 26
def have_turbo_streams(*matchers)
HaveTurboStreams.new(matchers)
end
|