summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorJacob Schatz <jschatz1@gmail.com>2016-10-15 10:51:16 -0400
committerJacob Schatz <jschatz1@gmail.com>2016-10-15 10:51:16 -0400
commita65394f35cc83f342e9b2c654cfb32d3eb4c45e7 (patch)
tree30eefb73dbf767d42052d2f71bac52bab483b335 /spec
parent6f59f73c1e8a5dd7862e7b7ba8ebd9c59c1022fd (diff)
parent5cf10240f9d8736923c57ff35c5c4acab7de37dc (diff)
downloadgitlab-ce-a65394f35cc83f342e9b2c654cfb32d3eb4c45e7.tar.gz
Merge branch 'master' of https://gitlab.com/gitlab-org/gitlab-ce
Diffstat (limited to 'spec')
-rw-r--r--spec/requests/git_http_spec.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/requests/git_http_spec.rb b/spec/requests/git_http_spec.rb
index 5a1ed7d4a25..27f0fd22ae6 100644
--- a/spec/requests/git_http_spec.rb
+++ b/spec/requests/git_http_spec.rb
@@ -412,9 +412,10 @@ describe 'Git HTTP requests', lib: true do
context "when the params are anything else" do
let(:params) { { service: 'git-implode-pack' } }
+ before { get path, params }
- it "fails to find a route" do
- expect { get(path, params) }.to raise_error(ActionController::RoutingError)
+ it "redirects to the sign-in page" do
+ expect(response).to redirect_to(new_user_session_path)
end
end
end