Skip to content

Commit

Permalink
Fix Set-Cookie header domain in tests for Rails 7.1
Browse files Browse the repository at this point in the history
Apparently now Rails returns the host without the initial .
  • Loading branch information
kennyadsl committed Dec 6, 2023
1 parent d85e5e5 commit 537eaf3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/spec/lib/spree/core/controller_helpers/auth_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def controller.index
path: '/api'
})
get :index
expect(response.headers["Set-Cookie"]).to match(/domain=\.test\.host; path=\/api/)
expect(response.headers["Set-Cookie"]).to match(/domain=(\.)?test\.host; path=\/api/)
end

it 'never overwrites httponly' do
Expand Down

0 comments on commit 537eaf3

Please sign in to comment.