summaryrefslogtreecommitdiff
path: root/features/steps
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-04-01 16:56:25 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-04-01 16:56:25 +0300
commit541d89941014137762dff696c83b3357eba8efeb (patch)
tree8d94e6baced612248531b94ce747fe8b7d76e4e5 /features/steps
parent49b024f5f5b88d406b895f050943db1e75adfa2a (diff)
downloadgitlab-ce-541d89941014137762dff696c83b3357eba8efeb.tar.gz
Project.repository should never be nil so you can call repository.exists? or repository.empty?
Also specify separate project factory for project with filled repo
Diffstat (limited to 'features/steps')
-rw-r--r--features/steps/shared/project.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/features/steps/shared/project.rb b/features/steps/shared/project.rb
index 81863a54f3d..b16032a8300 100644
--- a/features/steps/shared/project.rb
+++ b/features/steps/shared/project.rb
@@ -3,14 +3,14 @@ module SharedProject
# Create a project without caring about what it's called
And "I own a project" do
- @project = create(:project)
+ @project = create(:project_with_code)
@project.team << [@user, :master]
end
# Create a specific project called "Shop"
And 'I own project "Shop"' do
@project = Project.find_by_name "Shop"
- @project ||= create(:project, name: "Shop")
+ @project ||= create(:project_with_code, name: "Shop")
@project.team << [@user, :master]
end