Commit 32161080 authored by Walmyr Lima's avatar Walmyr Lima

Extend epic fabrication via api

To allow adding fixed start and due date properties.
parent 3248030e
......@@ -12,6 +12,17 @@ module QA
attribute :id
attribute :iid
attribute :start_date_is_fixed
attribute :start_date_fixed
attribute :due_date_is_fixed
attribute :due_date_fixed
def initialize
@start_date_is_fixed = false
@start_date_fixed = nil
@due_date_is_fixed = false
@due_date_fixed = nil
end
def fabricate!
group.visit!
......@@ -44,7 +55,11 @@ module QA
def api_post_body
{
title: title
title: title,
start_date_is_fixed: @start_date_is_fixed,
start_date_fixed: @start_date_fixed,
due_date_is_fixed: @due_date_is_fixed,
due_date_fixed: @due_date_fixed
}
end
end
......
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