summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Vosmaer <contact@jacobvosmaer.nl>2015-10-14 15:21:14 +0200
committerJacob Vosmaer <contact@jacobvosmaer.nl>2015-10-14 15:21:14 +0200
commit381ca79bfa59d8d78a8bb1a7ee60cb46a87e4929 (patch)
tree3fbff82a2fc6ee9ba3290fa632c4d5f5a7b48bdf
parent8f14332625d2031cb8275d1a4c8293120a25538d (diff)
downloadgitlab-ce-381ca79bfa59d8d78a8bb1a7ee60cb46a87e4929.tar.gz
Remove archive file sending spec
This is done by gitlab-git-http-server now.
-rw-r--r--spec/controllers/projects/repositories_controller_spec.rb28
1 files changed, 0 insertions, 28 deletions
diff --git a/spec/controllers/projects/repositories_controller_spec.rb b/spec/controllers/projects/repositories_controller_spec.rb
index 91856ed0cc0..18a30033ed8 100644
--- a/spec/controllers/projects/repositories_controller_spec.rb
+++ b/spec/controllers/projects/repositories_controller_spec.rb
@@ -33,33 +33,5 @@ describe Projects::RepositoriesController do
expect(response.status).to eq(404)
end
end
-
- context "when the service doesn't return a path" do
-
- before do
- allow(service).to receive(:execute).and_return(nil)
- end
-
- it "reloads the page" do
- get :archive, namespace_id: project.namespace.path, project_id: project.path, ref: "master", format: "zip"
-
- expect(response).to redirect_to(archive_namespace_project_repository_path(project.namespace, project, ref: "master", format: "zip"))
- end
- end
-
- context "when the service returns a path" do
-
- let(:path) { Rails.root.join("spec/fixtures/dk.png").to_s }
-
- before do
- allow(service).to receive(:execute).and_return(path)
- end
-
- it "sends the file" do
- get :archive, namespace_id: project.namespace.path, project_id: project.path, ref: "master", format: "zip"
-
- expect(response.body).to eq(File.binread(path))
- end
- end
end
end