Sha256: feb13c4762c89e0ed6d0003c6c3acebb28a99c5e62709b5a73480448d60c76a7

Contents?: true

Size: 277 Bytes

Versions: 8

Compression:

Stored size: 277 Bytes

Contents

require "mongo_mapper"
variants = { :thumb => {:width=>50,:height=>50} }
Factory.define :attachment do |a|
  a.owner_id Mongo::ObjectID.new
  a.owner_type  'Mock'
  a.name 'image'
  a.file_name 'mock.png'
  a.file_size 100
  a.content_type 'image/png'
  a.variants variants
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
grip-0.6.7 test/factories.rb
grip-0.6.6 test/factories.rb
grip-0.6.5 test/factories.rb
grip-0.6.4 test/factories.rb
grip-0.6.3 test/factories.rb
grip-0.6.2 test/factories.rb
grip-0.6.1 test/factories.rb
grip-0.6.0 test/factories.rb