Sha256: e089d04ae2a08e476d67556359a7e9113618ae9570e376028204a4d150a9b4b4
Contents?: true
Size: 622 Bytes
Versions: 4
Compression:
Stored size: 622 Bytes
Contents
require "turbo_test" class Turbo::FrameRequestControllerTest < ActionDispatch::IntegrationTest test "frame requests are rendered without a layout" do get tray_path(id: 1) assert_select "title", count: 1 get tray_path(id: 1), headers: { "Turbo-Frame" => "true" } assert_select "title", count: 0 end test "frame requests get a unique etag" do get tray_path(id: 1) etag_without_frame = @response.headers["ETag"] get tray_path(id: 1), headers: { "Turbo-Frame" => "true" } etag_with_frame = @response.headers["ETag"] assert_not_equal etag_with_frame, etag_without_frame end end
Version data entries
4 entries across 4 versions & 1 rubygems