summaryrefslogtreecommitdiff
path: root/features
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2017-08-02 15:25:52 -0400
committerRobert Speicher <rspeicher@gmail.com>2017-08-02 15:25:52 -0400
commitcf39d282a3c1ba2a5ce6e918c5144a05e2c06fee (patch)
tree783c723494843b2a93d680c69635869e5d2ff3e5 /features
parent88958e5a9cd364ae36f3d2837982cedb9239c3bc (diff)
downloadgitlab-ce-cf39d282a3c1ba2a5ce6e918c5144a05e2c06fee.tar.gz
Use `:empty_project` where possible in features/steps
Diffstat (limited to 'features')
-rw-r--r--features/steps/explore/groups.rb2
-rw-r--r--features/steps/shared/project.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/features/steps/explore/groups.rb b/features/steps/explore/groups.rb
index 409bf0cb416..4fd5fb6e07a 100644
--- a/features/steps/explore/groups.rb
+++ b/features/steps/explore/groups.rb
@@ -66,7 +66,7 @@ class Spinach::Features::ExploreGroups < Spinach::FeatureSteps
def group_has_project(groupname, projectname, visibility_level)
group = Group.find_by(name: groupname) || create(:group, name: groupname)
- project = create(:project,
+ project = create(:empty_project,
namespace: group,
name: projectname,
path: "#{groupname}-#{projectname}",
diff --git a/features/steps/shared/project.rb b/features/steps/shared/project.rb
index da1cdd9f897..846d546ed01 100644
--- a/features/steps/shared/project.rb
+++ b/features/steps/shared/project.rb
@@ -9,7 +9,7 @@ module SharedProject
step "I own a project in some group namespace" do
@group = create(:group, name: 'some group')
- @project = create(:project, namespace: @group)
+ @project = create(:empty_project, namespace: @group)
@project.team << [@user, :master]
end