diff options
author | Jacob Schatz <jschatz1@gmail.com> | 2016-10-15 10:51:16 -0400 |
---|---|---|
committer | Jacob Schatz <jschatz1@gmail.com> | 2016-10-15 10:51:16 -0400 |
commit | a65394f35cc83f342e9b2c654cfb32d3eb4c45e7 (patch) | |
tree | 30eefb73dbf767d42052d2f71bac52bab483b335 /spec | |
parent | 6f59f73c1e8a5dd7862e7b7ba8ebd9c59c1022fd (diff) | |
parent | 5cf10240f9d8736923c57ff35c5c4acab7de37dc (diff) | |
download | gitlab-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.rb | 5 |
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 |