summaryrefslogtreecommitdiff
path: root/spec/controllers
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-09-23 16:20:48 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-09-23 16:20:48 +0200
commit4bc1e040d4b7d73bd7afb3dbb95c87983eef2b04 (patch)
tree35333952cbdd0234e890c86ada81efd334fecb18 /spec/controllers
parent368a40fce672ff6954f1672b67d2bf204516b054 (diff)
downloadgitlab-ce-4bc1e040d4b7d73bd7afb3dbb95c87983eef2b04.tar.gz
Remove test for non existing functionalitycleanup-ci-dashboard
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'spec/controllers')
-rw-r--r--spec/controllers/ci/projects_controller_spec.rb50
1 files changed, 0 insertions, 50 deletions
diff --git a/spec/controllers/ci/projects_controller_spec.rb b/spec/controllers/ci/projects_controller_spec.rb
deleted file mode 100644
index 3e579f9a7d6..00000000000
--- a/spec/controllers/ci/projects_controller_spec.rb
+++ /dev/null
@@ -1,50 +0,0 @@
-require "spec_helper"
-
-describe Ci::ProjectsController do
- before do
- @project = FactoryGirl.create :ci_project
- end
-
- describe "POST /projects" do
- let(:project_dump) { OpenStruct.new({ id: @project.gitlab_id }) }
-
- let(:user) do
- create(:user)
- end
-
- before do
- sign_in(user)
- end
-
- it "creates project" do
- post :create, { project: JSON.dump(project_dump.to_h) }.with_indifferent_access
-
- expect(response.code).to eq('302')
- expect(assigns(:project)).not_to be_a_new(Ci::Project)
- end
-
- it "shows error" do
- post :create, { project: JSON.dump(project_dump.to_h) }.with_indifferent_access
-
- expect(response.code).to eq('302')
- expect(flash[:alert]).to include("You have to have at least master role to enable CI for this project")
- end
- end
-
- describe "GET /gitlab" do
- let(:user) do
- create(:user)
- end
-
- before do
- sign_in(user)
- end
-
- it "searches projects" do
- xhr :get, :index, { search: "str", format: "json" }.with_indifferent_access
-
- expect(response).to be_success
- expect(response.code).to eq('200')
- end
- end
-end