Skip to content
Browse files

:need_ids are now required (but not unique)

in future need_ids should be unique, but for now, this fixes the test and replicates actual behaviour
  • Loading branch information...
1 parent 231553f commit aba059dee9c1df1080db79c2c3e7f76aadef1be1 @daibach daibach committed Mar 29, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 features/support/artefacts.rb
View
6 features/support/artefacts.rb
@@ -1,12 +1,12 @@
def create_artefact
- Factory.create :artefact, :name => 'Child Benefit rates'
+ Factory.create :artefact, :name => 'Child Benefit rates', :need_id => 1
end
def create_two_artefacts
[
'Probation',
'Leaving prison'
- ].map { |name| Factory.create :artefact, :name => name }
+ ].map { |name| Factory.create :artefact, :name => name, :need_id => 1 }
end
def create_six_artefacts
@@ -17,7 +17,7 @@ def create_six_artefacts
'National Driver Offender Retraining Scheme',
'Apply for a new driving licence',
'Get a divorce'
- ].map { |name| Factory.create :artefact, :name => name }
+ ].map { |name| Factory.create :artefact, :name => name, :need_id => 1 }
end
def add_related_artefact(artefact, related_artefact)

0 comments on commit aba059d

Please sign in to comment.
Something went wrong with that request. Please try again.