Skip to content

Instantly share code, notes, and snippets.

Created February 24, 2010 05:05
Show Gist options
  • Save anonymous/313121 to your computer and use it in GitHub Desktop.
Save anonymous/313121 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