Commit 08b26bd5 authored by Mark Lapierre's avatar Mark Lapierre

Merge branch 'refactor-project-milestone-refactor-part-2' into 'master'

Part 2 of project milestone resource refactoring

See merge request gitlab-org/gitlab!23988
parents 87904934 b5f9709c
......@@ -6,15 +6,6 @@ module QA
class ProjectMilestone < QA::Resource::ProjectMilestone
attr_writer :start_date, :due_date
attribute :id
attribute :iid
attribute :project do
QA::Resource::Project.fabricate_via_api! do |resource|
resource.name = 'project-with-milestone'
end
end
def api_post_body
{
title: title
......
......@@ -3,10 +3,13 @@
module QA
module Resource
class ProjectMilestone < Base
attribute :id
attribute :title
attribute :project do
Project.fabricate!
Project.fabricate_via_api! do |resource|
resource.name = 'project-with-milestone'
end
end
def initialize
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment