Update issue resource to allow for adding weight
This commit is contained in:
parent
fce0bf4ab7
commit
404950f1cd
1 changed files with 2 additions and 1 deletions
|
@ -3,7 +3,7 @@
|
||||||
module QA
|
module QA
|
||||||
module Resource
|
module Resource
|
||||||
class Issue < Base
|
class Issue < Base
|
||||||
attr_writer :description, :milestone
|
attr_writer :description, :milestone, :weight
|
||||||
|
|
||||||
attribute :project do
|
attribute :project do
|
||||||
Project.fabricate! do |resource|
|
Project.fabricate! do |resource|
|
||||||
|
@ -46,6 +46,7 @@ module QA
|
||||||
title: title
|
title: title
|
||||||
}.tap do |hash|
|
}.tap do |hash|
|
||||||
hash[:milestone_id] = @milestone.id if @milestone
|
hash[:milestone_id] = @milestone.id if @milestone
|
||||||
|
hash[:weight] = @weight if @weight
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue