Added photo model
This commit is contained in:
parent
0f697f3dbe
commit
69ddea47dd
6 changed files with 62 additions and 1 deletions
12
spec/factories/photos.rb
Normal file
12
spec/factories/photos.rb
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
# Read about factories at https://github.com/thoughtbot/factory_girl
|
||||
|
||||
FactoryGirl.define do
|
||||
factory :photo do
|
||||
picture_file_name 'rails.png'
|
||||
picture_content_type 'image/png'
|
||||
picture_file_size '1024'
|
||||
picture_updated_at DateTime.now
|
||||
description 'Lorem Ipsum Dolor'
|
||||
conference
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue