Commit 370c15a5 authored by Walmyr Lima e Silva Filho's avatar Walmyr Lima e Silva Filho

Merge branch 'simplify-plan-ee-qa-tests' into 'master'

Simplify Plan EE QA tests

See merge request gitlab-org/gitlab!23540
parents f7c9c356 a73f85d8
...@@ -16,6 +16,10 @@ module QA ...@@ -16,6 +16,10 @@ module QA
end end
end end
def initialize
@title = "project-milestone-#{SecureRandom.hex(8)}"
end
def resource_web_url(resource) def resource_web_url(resource)
super super
rescue ResourceURLMissingError rescue ResourceURLMissingError
......
...@@ -7,7 +7,6 @@ module QA ...@@ -7,7 +7,6 @@ module QA
let(:milestone) do let(:milestone) do
QA::EE::Resource::ProjectMilestone.fabricate_via_api! do |m| QA::EE::Resource::ProjectMilestone.fabricate_via_api! do |m|
m.title = 'v1'
m.start_date = current_date_yyyy_mm_dd m.start_date = current_date_yyyy_mm_dd
m.due_date = next_month_yyyy_mm_dd m.due_date = next_month_yyyy_mm_dd
end end
......
...@@ -8,9 +8,7 @@ module QA ...@@ -8,9 +8,7 @@ module QA
end end
let(:milestone) do let(:milestone) do
QA::EE::Resource::ProjectMilestone.fabricate_via_api! do |m| QA::EE::Resource::ProjectMilestone.fabricate_via_api!
m.title = 'the-fellowship-of-the-ring'
end
end end
let(:weight) { 1000 } let(:weight) { 1000 }
......
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