Commit 4ead9f3b authored by Stan Hu's avatar Stan Hu

Specify Content-Type in spec because Rails 5 requires this

As seen in
https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/9050#note_129567467,
ActionPack::Dispatch in Rails 5 requires a content-type to parse
the Rack input, while Rack itself does not.
parent 03651e25
......@@ -19,7 +19,7 @@ describe Gitlab::Auth::GroupSaml::GroupLookup do
let(:path_info) { '/users/auth/group_saml' }
it 'can detect group_path from rack.input body params' do
subject( 'REQUEST_METHOD' => 'POST', 'rack.input' => StringIO.new(query_string) )
subject( 'REQUEST_METHOD' => 'POST', 'rack.input' => StringIO.new(query_string), 'CONTENT_TYPE' => 'multipart/form-data' )
expect(subject.path).to eq 'the-group'
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment