instance method
assert_turbo_cable_stream_source
Ruby on Rails 2.0.23
Since v2.0.23 Last seen in v2.0.23Signature
assert_turbo_cable_stream_source(...)
Asserts that a ‘<turbo-cable-stream-source>` element is present in the document
Arguments
-
locatoroptional locator to determine the element’s[signed-stream-name]attribute. Can be of any type that is a valid argument toTurbo::Streams::StreamName#signed_stream_name.
Options
-
:connectedmatches the[connected]attribute -
:channelmatches the[channel]attribute. Can be a Class, String, Symbol, or Regexp -
:signed_stream_namematches the element’s[signed-stream-name]attribute. Can be of any type that is a valid argument toTurbo::Streams::StreamName#signed_stream_name.
In addition to the filters listed above, accepts any valid Capybara global filter option.
Parameters
-
...req
Source
# File lib/turbo/system_test_helper.rb, line 54
def assert_turbo_cable_stream_source(...)
assert_selector(:turbo_cable_stream_source, ...)
end
Defined in lib/turbo/system_test_helper.rb line 54
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Turbo::SystemTestHelper