summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2016-10-07 14:53:49 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2016-10-10 16:32:32 +0300
commit68ab7047dae98172a0bd8b92956f2ee51b9167a0 (patch)
tree0a0deb56c72b8718498c6568f0bf398a46a00379
parent66c32cab1af621caa6ae3cb24b82b344d43512a5 (diff)
downloadgitlab-ce-68ab7047dae98172a0bd8b92956f2ee51b9167a0.tar.gz
Update git over http test to match new routing
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
-rw-r--r--spec/requests/git_http_spec.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/spec/requests/git_http_spec.rb b/spec/requests/git_http_spec.rb
index c0c1e62e910..413d06715b3 100644
--- a/spec/requests/git_http_spec.rb
+++ b/spec/requests/git_http_spec.rb
@@ -412,10 +412,9 @@ 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 "redirects to the sign-in page" do
- expect(response).to redirect_to(new_user_session_path)
+ it "fails to find a route" do
+ expect { get(path, params) }.to raise_error(ActionController::RoutingError)
end
end
end