Skip to content
Snippets Groups Projects
Commit 57145483 authored by Jacob Vosmaer's avatar Jacob Vosmaer
Browse files

Spec Www-Authenticate

parent ccf5b21f
No related branches found
No related tags found
2 merge requests!450CE upstream,!446Git HTTP Controller: EE
......@@ -4,6 +4,12 @@
let(:user) { create(:user) }
let(:project) { create(:project) }
it "gives WWW-Authenticate hints" do
clone_get('doesnt/exist.git')
expect(response.header['WWW-Authenticate']).to start_with('Basic ')
end
context "when the project doesn't exist" do
context "when no authentication is provided" do
it "responds with status 401" do
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment