Skip to content

Commit b5315a3

Browse files
committed
how does this fare in our CI matrix?
1 parent b9b0ec7 commit b5315a3

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

test/sandbox/app/controllers/integration_examples_controller.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
# frozen_string_literal: true
22

33
class IntegrationExamplesController < ActionController::Base
4-
layout false
5-
64
def variants
75
request.variant = params[:variant].to_sym if params[:variant]
86
end

test/sandbox/test/integration_test.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,14 @@ def test_rendering_component_with_template_annotations_enabled
2424
assert_select("div", "Foo bar")
2525
end
2626

27+
def test_rendering_component_in_a_controller_layout_behavior
28+
get "/controller_inline"
29+
assert_select("div", "bar")
30+
assert_response :success
31+
32+
assert_includes(response.body, "<body")
33+
end
34+
2735
def test_rendering_component_in_a_controller
2836
get "/controller_inline_baseline"
2937

0 commit comments

Comments
 (0)