Sha256: d9666064a25851be4b6acb235b211b650e6d40a43939e67fd8e26496456764d0
Contents?: true
Size: 773 Bytes
Versions: 6
Compression:
Stored size: 773 Bytes
Contents
# frozen_string_literal: true require "test_helper" class CableReady::HelperTest < ActionView::TestCase include CableReadyHelper # stream_from test "stream_from renders html options" do element = Nokogiri::HTML.fragment(stream_from("key", html_options: {class: "block", data: {controller: "modal"}}) {}) assert_equal "block", element.children.first["class"] assert_equal "modal", element.children.first["data-controller"] end # updates_for test "updates_for renders html options" do element = Nokogiri::HTML.fragment(updates_for("key", html_options: {class: "block", data: {controller: "modal"}}) {}) assert_equal "block", element.children.first["class"] assert_equal "modal", element.children.first["data-controller"] end end
Version data entries
6 entries across 6 versions & 1 rubygems