summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2016-10-15 01:48:14 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2016-10-15 01:48:14 +0300
commitb0622d657893b156ac0c265f397efeb28d5b0b4c (patch)
treebeb4ceb0c0e2063ef1d11f536cda08bb99f09273
parent2b9a25bd5a69c3c6a5bb24bb67838a4d354204e1 (diff)
downloadgitlab-ce-dz-handle-unmatched-routes.tar.gz
Revert "Update git over http test to match new routing"dz-handle-unmatched-routes
This reverts commit 68ab7047dae98172a0bd8b92956f2ee51b9167a0.
-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