instance method
assert_no_turbo_frame
Ruby on Rails 2.0.23
Since v2.0.23 Last seen in v2.0.23Signature
assert_no_turbo_frame(*ids, **options, &block)
Assert that the rendered fragment of HTML does not contain a ‘<turbo-frame>` element.
Arguments
-
ids[String, Array<String, ActiveRecord::Base>] matches the[id]attribute
Options
-
:loading[String] matches the element’s[loading]attribute -
:src[String] matches the element’s[src]attribute -
:target[String] matches the element’s[target]attributeGiven the following HTML fragment:
<turbo-frame id="example" target="_top"></turbo-frame>
The following assertion would fail:
assert_no_turbo_frame id: "example", target: "_top"
Parameters
-
idsrest -
optionskeyrest -
blockblock
Source
# File lib/turbo/test_assertions.rb, line 153
def assert_no_turbo_frame(*ids, **options, &block)
assert_turbo_frame(*ids, **options, count: 0, &block)
end
Defined in lib/turbo/test_assertions.rb line 153
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Turbo::TestAssertions