System Hooks: rspec
This commit is contained in:
parent
655418bed2
commit
86bd11cbd8
4 changed files with 133 additions and 3 deletions
|
@ -7,6 +7,12 @@ Factory.add(:project, Project) do |obj|
|
|||
obj.code = 'LGT'
|
||||
end
|
||||
|
||||
Factory.add(:project_without_owner, Project) do |obj|
|
||||
obj.name = Faker::Internet.user_name
|
||||
obj.path = 'gitlabhq'
|
||||
obj.code = 'LGT'
|
||||
end
|
||||
|
||||
Factory.add(:public_project, Project) do |obj|
|
||||
obj.name = Faker::Internet.user_name
|
||||
obj.path = 'gitlabhq'
|
||||
|
@ -64,6 +70,10 @@ Factory.add(:project_hook, ProjectHook) do |obj|
|
|||
obj.url = Faker::Internet.uri("http")
|
||||
end
|
||||
|
||||
Factory.add(:system_hook, SystemHook) do |obj|
|
||||
obj.url = Faker::Internet.uri("http")
|
||||
end
|
||||
|
||||
Factory.add(:wiki, Wiki) do |obj|
|
||||
obj.title = Faker::Lorem.sentence
|
||||
obj.content = Faker::Lorem.sentence
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue