Adapts factories/fixtures

pull/448/head
Hagen Schink 11 years ago
parent f91a6f90b6
commit bdf19298c6
  1. 4
      spec/factories/relation_factory.rb
  2. 4
      test/fixtures/relations.yml

@ -27,8 +27,8 @@
#++
FactoryGirl.define do
factory :issue_relation do
from :factory => :issue
factory :relation do
from :factory => :work_package
to { FactoryGirl.build(:work_package, :project => from.project) }
relation_type 'relates' # "relates", "duplicates", "duplicated", "blocks", "blocked", "precedes", "follows"
delay nil

@ -26,13 +26,13 @@
# See doc/COPYRIGHT.rdoc for more details.
#++
issue_relation_001:
relation_001:
id: 1
from_id: 10
to_id: 9
relation_type: blocks
delay:
issue_relation_002:
relation_002:
id: 2
from_id: 2
to_id: 3
Loading…
Cancel
Save