metamaps--metamaps/spec/factories/synapses.rb

14 lines
354 B
Ruby
Raw Permalink Normal View History

2016-09-24 03:00:46 +00:00
# frozen_string_literal: true
2015-10-19 07:23:49 +00:00
FactoryGirl.define do
factory :synapse do
sequence(:desc) { |n| "Cool synapse ##{n}" }
category :'from-to'
2015-12-16 14:19:58 +00:00
permission :commons
association :topic1, factory: :topic
association :topic2, factory: :topic
user
2017-02-09 21:53:19 +00:00
association :updated_by, factory: :user
2016-09-24 03:00:46 +00:00
weight 1 # TODO: drop this column
2015-10-19 07:23:49 +00:00
end
end