diff --git a/app/controllers/turbo/frames/frame_request.rb b/app/controllers/turbo/frames/frame_request.rb index f1e84f05..80e2d5ac 100644 --- a/app/controllers/turbo/frames/frame_request.rb +++ b/app/controllers/turbo/frames/frame_request.rb @@ -21,7 +21,6 @@ module Turbo::Frames::FrameRequest extend ActiveSupport::Concern included do - layout -> { "turbo_rails/frame" if turbo_frame_request? } etag { :frame if turbo_frame_request? } helper_method :turbo_frame_request?, :turbo_frame_request_id diff --git a/app/views/layouts/turbo_rails/frame.html.erb b/app/views/layouts/turbo_rails/frame.html.erb deleted file mode 100644 index 0171671e..00000000 --- a/app/views/layouts/turbo_rails/frame.html.erb +++ /dev/null @@ -1,8 +0,0 @@ - - - <%= yield :head %> - - - <%= yield %> - - diff --git a/test/frames/frame_request_controller_test.rb b/test/frames/frame_request_controller_test.rb index 41b1c512..5f066954 100644 --- a/test/frames/frame_request_controller_test.rb +++ b/test/frames/frame_request_controller_test.rb @@ -6,7 +6,7 @@ class Turbo::FrameRequestControllerTest < ActionDispatch::IntegrationTest assert_select "title", count: 1 get tray_path(id: 1), headers: { "Turbo-Frame" => "true" } - assert_select "title", count: 0 + assert_select "title", count: 1 end test "frame request layout includes `head` content" do @@ -22,7 +22,7 @@ class Turbo::FrameRequestControllerTest < ActionDispatch::IntegrationTest end assert_select "meta[name=test][content=present]" - assert_select "meta[name=alternative][content=present]" + assert_select "meta[name=alternative][content=present]", count: 0 end test "frame requests get a unique etag" do