diff options
author | Jacob Vosmaer <contact@jacobvosmaer.nl> | 2016-03-24 17:44:10 +0100 |
---|---|---|
committer | Jacob Vosmaer <contact@jacobvosmaer.nl> | 2016-03-24 17:44:10 +0100 |
commit | 57145483fc41cc73b7b41005ebac90779f817b5e (patch) | |
tree | c058d625d6d6b4d33a49b94509cf0efbff3e5a60 /spec | |
parent | ccf5b21f28d41e10de450e31d6e8855d1ee2f81e (diff) | |
download | gitlab-ce-57145483fc41cc73b7b41005ebac90779f817b5e.tar.gz |
Spec Www-Authenticate
Diffstat (limited to 'spec')
-rw-r--r-- | spec/requests/git_http_spec.rb | 6 |
1 files changed, 6 insertions, 0 deletions
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 |