Skip to content

Commit 3c5af4a

Browse files
committed
Headers are lowercase now (because of rack change?)
1 parent fce42f9 commit 3c5af4a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/controllers/workflows_controller_test.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ class WorkflowsControllerTest < ActionController::TestCase
8181
test "should show workflow" do
8282
get :show, params: { id: @workflow }
8383
assert_response :success
84-
assert_includes response.headers.keys, 'X-Frame-Options', 'X-Frame-Options header should be present in all actions except `embed`'
84+
assert_includes response.headers.keys.map(&:downcase), 'x-frame-options', 'X-Frame-Options header should be present in all actions except `embed`'
8585
assert assigns(:workflow)
8686
end
8787

@@ -98,7 +98,7 @@ class WorkflowsControllerTest < ActionController::TestCase
9898
get :embed, params: { id: @workflow }
9999
assert_response :success
100100
assert_select '.embedded-container', count: 1
101-
assert_not_includes response.headers.keys, 'X-Frame-Options', 'X-Frame-Options header should be removed to allow embedding in iframes'
101+
assert_not_includes response.headers.keys.map(&:downcase), 'x-frame-options', 'X-Frame-Options header should be removed to allow embedding in iframes'
102102
end
103103

104104
test "should not show embedded private workflow" do

0 commit comments

Comments
 (0)