test/factories.rb in iqvoc-4.0.0 vs test/factories.rb in iqvoc-4.0.1

- old
+ new

@@ -36,10 +36,10 @@ rel.target {|target| target.association(:concept, :top_term => false, :broader_relations => [], :narrower_relations => [], :pref_labelings => [ FactoryGirl.create(:pref_labeling, :target => FactoryGirl.create(:pref_label, :value => 'Some narrower relation')) ]) } - rel.after_create { |new_relation| FactoryGirl.create(:stupid_broader_relation, :owner => new_relation.target, :target => new_relation.owner) } + rel.after(:create) { |new_relation| FactoryGirl.create(:stupid_broader_relation, :owner => new_relation.target, :target => new_relation.owner) } end factory :pref_labeling, :class => Iqvoc::Concept.pref_labeling_class do |lab| lab.target { |target| target.association(:pref_label) } end