parent
a8b94c13f3
commit
22cc5e4f14
12 changed files with 190 additions and 13 deletions
|
|
@ -1,7 +1,9 @@
|
|||
# Read about factories at https://github.com/thoughtbot/factory_girl
|
||||
include ActionDispatch::TestProcess
|
||||
|
||||
FactoryGirl.define do
|
||||
factory :photo do
|
||||
picture { fixture_file_upload(Rails.root.join('app', 'assets', 'images', 'rails.png'), 'image/png') }
|
||||
picture_file_name 'rails.png'
|
||||
picture_content_type 'image/png'
|
||||
picture_file_size '1024'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue