diff --git a/spec/factories/synapses.rb b/spec/factories/synapses.rb new file mode 100644 index 00000000..47ed5c04 --- /dev/null +++ b/spec/factories/synapses.rb @@ -0,0 +1,9 @@ +FactoryGirl.define do + factory :synapse do + desc { random_string(10) } + category :to + permission :commons + association :node1, factory: :topic + association :node2, factory: :topic + end +end diff --git a/spec/factories/topics.rb b/spec/factories/topics.rb new file mode 100644 index 00000000..ecec31a3 --- /dev/null +++ b/spec/factories/topics.rb @@ -0,0 +1,6 @@ +FactoryGirl.define do + factory :topic do + name { random_string(10) } + permission :commons + end +end diff --git a/spec/factories/users.rb b/spec/factories/users.rb new file mode 100644 index 00000000..51633217 --- /dev/null +++ b/spec/factories/users.rb @@ -0,0 +1,9 @@ +FactoryGirl.define do + factory :user do + name { random_string(10) } + email { random_string(10) + '@' + random_string(10) + '.com' } + code { random_string(8) } + joinedwithcode { random_string(8) } + password 'omgwtfbbq' + end +end