diff options
author | Robert Speicher <rspeicher@gmail.com> | 2014-03-19 05:15:24 -0400 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2014-03-19 05:15:24 -0400 |
commit | 1897fb00b8d804cffa40da074f83575489beddb0 (patch) | |
tree | 8492bd315ba3229feef426406cfd6b45a60392cf /features/steps/shared/project.rb | |
parent | 65d634706cf833fc4b0b2f263f9d8fb35219858e (diff) | |
download | gitlab-ce-1897fb00b8d804cffa40da074f83575489beddb0.tar.gz |
Make use of project factory traits
Diffstat (limited to 'features/steps/shared/project.rb')
-rw-r--r-- | features/steps/shared/project.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/features/steps/shared/project.rb b/features/steps/shared/project.rb index f35beab8af2..f8cb753b78f 100644 --- a/features/steps/shared/project.rb +++ b/features/steps/shared/project.rb @@ -79,7 +79,7 @@ module SharedProject end step 'internal project "Internal"' do - create :project, name: 'Internal', visibility_level: Gitlab::VisibilityLevel::INTERNAL + create :project, :internal, name: 'Internal' end step 'I should see project "Internal"' do @@ -91,7 +91,7 @@ module SharedProject end step 'public project "Community"' do - create :project, name: 'Community', visibility_level: Gitlab::VisibilityLevel::PUBLIC + create :project, :public, name: 'Community' end step 'I should see project "Community"' do @@ -112,14 +112,14 @@ module SharedProject step '"John Doe" is authorized to internal project "Internal"' do user = user_exists("John Doe", username: "john_doe") project = Project.find_by(name: "Internal") - project ||= create :project, name: 'Internal', visibility_level: Gitlab::VisibilityLevel::INTERNAL + project ||= create :project, :internal, name: 'Internal' project.team << [user, :master] end step '"John Doe" is authorized to public project "Community"' do user = user_exists("John Doe", username: "john_doe") project = Project.find_by(name: "Community") - project ||= create :project, name: 'Community', visibility_level: Gitlab::VisibilityLevel::PUBLIC + project ||= create :project, :public, name: 'Community' project.team << [user, :master] end end |