Sha256: 134321fb272b5cd6e7cbc0b36b3c85e5359af72015d2850fce3fdb04753d3579
Contents?: true
Size: 575 Bytes
Versions: 2
Compression:
Stored size: 575 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 "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.1 | test/frames/frames_helper_test.rb |
turbo-rails-0.5.0 | test/frames/frames_helper_test.rb |