Sha256: cc329fb87c5243827fedd30fb5ebdd8853d884ebc4457c164770476ab422f3b3
Contents?: true
Size: 383 Bytes
Versions: 3
Compression:
Stored size: 383 Bytes
Contents
Factory.define :asset_avatar, :class => Avatar do |a| #include ActionDispatch::TestProcess a.data File.open('spec/factories/files/rails.png') a.association :assetable, :factory => :default_user end Factory.define :asset_avatar_big, :class => Avatar do |a| a.data File.open('spec/factories/files/silicon_valley.jpg') a.association :assetable, :factory => :default_user end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
sunrise-core-0.2.2 | spec/factories/asset_factory.rb |
sunrise-core-0.2.1 | spec/factories/asset_factory.rb |
sunrise-core-0.2.0 | spec/factories/asset_factory.rb |