instance method assert_no_turbo_stream

Ruby on Rails 1.3.3

Since v1.3.3 Last seen in v2.0.23

Available in: v1.3.3 v1.4.0 v1.5.0 v2.0.23

Signature

assert_no_turbo_stream(action:, target: nil, targets: nil)

No documentation comment.

Parameters

action keyreq
target key = nil
targets key = nil
Source
# File lib/turbo/test_assertions.rb, line 19
    def assert_no_turbo_stream(action:, target: nil, targets: nil)
      assert_equal Mime[:turbo_stream], response.media_type
      selector =  %(turbo-stream[action="#{action}"])
      selector << %([target="#{target.respond_to?(:to_key) ? dom_id(target) : target}"]) if target
      selector << %([targets="#{targets}"]) if targets
      assert_select selector, count: 0
    end

Defined in lib/turbo/test_assertions.rb line 19 · View on GitHub · Improve this page · Find usages on GitHub

Defined in Turbo::TestAssertions

Type at least 2 characters to search.

↑↓ navigate · open · esc close