Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-09-10 19:12:14 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-09-10 19:12:14 +0300
commit9a9417ee8e8f3d8fe8320eaaf150ff1eb77a471e (patch)
treeadd4ba1b5fa9bdcbde9666653c48841e2b7db2ef /spec/controllers
parentdc2e38e56db43c86e7ecf44c01234130f648d350 (diff)
Fix more tests
Diffstat (limited to 'spec/controllers')
-rw-r--r--spec/controllers/ci/projects_controller_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/controllers/ci/projects_controller_spec.rb b/spec/controllers/ci/projects_controller_spec.rb
index 9af766eff33..563064b0cef 100644
--- a/spec/controllers/ci/projects_controller_spec.rb
+++ b/spec/controllers/ci/projects_controller_spec.rb
@@ -55,7 +55,7 @@ describe Ci::ProjectsController do
end
let(:user) do
- Ci::User.new(user_data)
+ create(:user)
end
it "creates project" do
@@ -73,7 +73,7 @@ describe Ci::ProjectsController do
it "shows error" do
allow(controller).to receive(:reset_cache) { true }
allow(controller).to receive(:current_user) { user }
- allow_any_instance_of(Ci::User).to receive(:can_manage_project?).and_return(false)
+ allow_any_instance_of(User).to receive(:can_manage_project?).and_return(false)
post :create, { project: JSON.dump(project_dump.to_h) }.with_indifferent_access
@@ -91,7 +91,7 @@ describe Ci::ProjectsController do
end
let(:user) do
- Ci::User.new(user_data)
+ create(:user)
end
it "searches projects" do