Commit 34f47ffd authored by Walmyr Lima's avatar Walmyr Lima

Simplify the issues weight end-to-end test

By leaving the project fabrication to the milestone fabrication
since it creates it by default if none is provided.
parent c02c1c9e
......@@ -7,15 +7,8 @@ module QA
Flow::Login.sign_in
end
let(:project) do
QA::Resource::Project.fabricate_via_api! do |project|
project.name = 'the-lord-of-the-rings'
end
end
let(:milestone) do
QA::EE::Resource::ProjectMilestone.fabricate_via_api! do |m|
m.project = project
m.title = 'the-fellowship-of-the-ring'
end
end
......@@ -25,7 +18,7 @@ module QA
let(:issue) do
Resource::Issue.fabricate_via_api! do |issue|
issue.milestone = milestone
issue.project = project
issue.project = milestone.project
issue.title = 'keep-the-ring-safe'
issue.weight = weight
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