lib/turbo/broadcastable/test_helper.rb in turbo-rails-2.0.1 vs lib/turbo/broadcastable/test_helper.rb in turbo-rails-2.0.2
- old
+ new
@@ -9,18 +9,18 @@
include Turbo::Streams::StreamName
end
# Asserts that `<turbo-stream>` elements were broadcast over Action Cable
#
- # === Arguments
+ # ==== Arguments
#
# * <tt>stream_name_or_object</tt> the objects used to generate the
# channel Action Cable name, or the name itself
# * <tt>&block</tt> optional block executed before the
# assertion
#
- # === Options
+ # ==== Options
#
# * <tt>count:</tt> the number of `<turbo-stream>` elements that are
# expected to be broadcast
#
# Asserts `<turbo-stream>` elements were broadcast:
@@ -68,11 +68,11 @@
end
end
# Asserts that no `<turbo-stream>` elements were broadcast over Action Cable
#
- # === Arguments
+ # ==== Arguments
#
# * <tt>stream_name_or_object</tt> the objects used to generate the
# channel Action Cable name, or the name itself
# * <tt>&block</tt> optional block executed before the
# assertion
@@ -111,10 +111,10 @@
assert payloads.empty?, "Expected no broadcasts on #{stream_name.inspect}, but there were #{payloads.count}"
end
# Captures any `<turbo-stream>` elements that were broadcast over Action Cable
#
- # === Arguments
+ # ==== Arguments
#
# * <tt>stream_name_or_object</tt> the objects used to generate the
# channel Action Cable name, or the name itself
# * <tt>&block</tt> optional block to capture broadcasts during execution
#