Skip to content

Instantly share code, notes, and snippets.

@barsukov
Forked from anonymous/factories.rb
Created April 13, 2014 16:24
Show Gist options
  • Select an option

  • Save barsukov/10590924 to your computer and use it in GitHub Desktop.

Select an option

Save barsukov/10590924 to your computer and use it in GitHub Desktop.

Revisions

  1. @invalid-email-address Anonymous created this gist Feb 24, 2010.
    7 changes: 7 additions & 0 deletions factories.rb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    Factory.define :item do |f|
    include ActionDispatch::TestProcess

    f.name "Macbook Pro 15"
    f.price_in_dollars 1500
    f.photo fixture_file_upload('/files/avatar.jpg', 'image/jpg')
    end