diff options
author | Robert Speicher <rspeicher@gmail.com> | 2017-01-26 00:44:33 +0300 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2017-01-26 01:14:38 +0300 |
commit | 4642ca6686d30e1bb203ece4836a294c868a6250 (patch) | |
tree | d9c1847421c210f108453905d6a3d53ad7b5579c /spec/controllers/admin | |
parent | d55839120e92be48b30d248ce9d72a19be038c79 (diff) |
Use `empty_project` where possible in controller specs
Diffstat (limited to 'spec/controllers/admin')
-rw-r--r-- | spec/controllers/admin/groups_controller_spec.rb | 2 | ||||
-rw-r--r-- | spec/controllers/admin/projects_controller_spec.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/spec/controllers/admin/groups_controller_spec.rb b/spec/controllers/admin/groups_controller_spec.rb index 602de72d23f..84db26a958a 100644 --- a/spec/controllers/admin/groups_controller_spec.rb +++ b/spec/controllers/admin/groups_controller_spec.rb @@ -2,7 +2,7 @@ require 'spec_helper' describe Admin::GroupsController do let(:group) { create(:group) } - let(:project) { create(:project, namespace: group) } + let(:project) { create(:empty_project, namespace: group) } let(:admin) { create(:admin) } before do diff --git a/spec/controllers/admin/projects_controller_spec.rb b/spec/controllers/admin/projects_controller_spec.rb index 8eaacef2024..2c35d394b74 100644 --- a/spec/controllers/admin/projects_controller_spec.rb +++ b/spec/controllers/admin/projects_controller_spec.rb @@ -1,7 +1,7 @@ require 'spec_helper' describe Admin::ProjectsController do - let!(:project) { create(:project, visibility_level: Gitlab::VisibilityLevel::PUBLIC) } + let!(:project) { create(:empty_project, :public) } before do sign_in(create(:admin)) |