introduce organizations
This commit is contained in:
parent
bf54487a19
commit
8edf896d86
21 changed files with 345 additions and 4 deletions
13
spec/factories/organizations.rb
Normal file
13
spec/factories/organizations.rb
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
FactoryGirl.define do
|
||||
factory :organization do
|
||||
name { Faker::Company.name }
|
||||
description { Faker::Lorem.paragraph }
|
||||
|
||||
# after(:create) do |organization|
|
||||
# File.open("spec/support/logos/#{1 + rand(13)}.png") do |file|
|
||||
# organization.picture = file
|
||||
# end
|
||||
# organization.save!
|
||||
# end
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue