cukefix: it wasn't the parent like it was supposed to

pull/6827/head
Jens Ulferts 13 years ago
parent 928b7cbdf7
commit 5414b91bc5
  1. 7
      spec/models/issue_fixed_version_restricted_spec.rb

@ -82,7 +82,7 @@ describe Issue, "fixed version restricted by an issues parents (if it's a task)"
before(:each) do
parent.save!
subject.parent_issue_id = parent.id
subject.parent_issue_id = parent.id unless subject.parent_issue_id.present? #already set outside the example group?
subject.save!
parent.reload
end
@ -149,7 +149,7 @@ describe Issue, "fixed version restricted by an issues parents (if it's a task)"
before(:each) do
parent.save!
subject.parent_issue_id = parent.id
subject.parent_issue_id = parent.id unless subject.parent_issue_id.present? #already set outside the example group?
subject.save!
parent.reload
end
@ -275,6 +275,9 @@ describe Issue, "fixed version restricted by an issues parents (if it's a task)"
task2.parent_issue_id = story.id #a task needs a parent
task2.save!
story.reload
task.parent_issue_id = task2.id
task.save!
task2.reload
end
let(:parent) { story } #it's actually the grandparent but it makes no difference for the test

Loading…
Cancel
Save