Sha256: b71742756e7f12275b5decc4ae4f97101085e89aa6a1c7b2afb73a85d926216b
Contents?: true
Size: 774 Bytes
Versions: 2
Compression:
Stored size: 774 Bytes
Contents
require "turbo_test" class Turbo::FramesHelperTest < ActionView::TestCase test "frame with src" do assert_dom_equal %(<turbo-frame src="/trays/1" id="tray"></turbo-frame>), turbo_frame_tag("tray", src: "/trays/1") end test "frame with src and target" do assert_dom_equal %(<turbo-frame src="/trays/1" id="tray" target="_top"></turbo-frame>), turbo_frame_tag("tray", src: "/trays/1", target: "_top") end test "frame with model argument" do record = Message.new(record_id: "1", content: "ignored") assert_dom_equal %(<turbo-frame id="message_1"></turbo-frame>), turbo_frame_tag(record) end test "block style" do assert_dom_equal(%(<turbo-frame id="tray"><p>tray!</p></turbo-frame>), turbo_frame_tag("tray") { tag.p("tray!") }) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
turbo-rails-0.5.3 | test/frames/frames_helper_test.rb |
turbo-rails-0.5.2 | test/frames/frames_helper_test.rb |