From 57145483fc41cc73b7b41005ebac90779f817b5e Mon Sep 17 00:00:00 2001
From: Jacob Vosmaer <contact@jacobvosmaer.nl>
Date: Thu, 24 Mar 2016 17:44:10 +0100
Subject: [PATCH] Spec Www-Authenticate

---
 spec/requests/git_http_spec.rb | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/spec/requests/git_http_spec.rb b/spec/requests/git_http_spec.rb
index a26b986aeb0..967e0ab6e74 100644
--- a/spec/requests/git_http_spec.rb
+++ b/spec/requests/git_http_spec.rb
@@ -4,6 +4,12 @@ describe 'Git HTTP requests', lib: true do
   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
-- 
GitLab