Sha256: abef2daf198af2d7e1c1f9251a28216aa009c43599650f4d2858ef529454b3e9

Contents?: true

Size: 301 Bytes

Versions: 16

Compression:

Stored size: 301 Bytes

Contents

include ActionDispatch::TestProcess

FactoryGirl.define do

  factory :attachment, class: Gaku::Attachment do
    name 'pic1'
    asset_file_name { 'avatar.jpg' }
    asset_content_type { 'image/jpg' }
  end

  trait :for_exam_portion do
    association :attachable, factory: :exam_portion
  end

end

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
gaku_core-0.3.0 lib/gaku/testing/factories/attachment_factory.rb
gaku_core-0.3.0.pre.4 lib/gaku/testing/factories/attachment_factory.rb
gaku_core-0.3.0.pre.3 lib/gaku/testing/factories/attachment_factory.rb
gaku_core-0.3.0.pre.2 lib/gaku/testing/factories/attachment_factory.rb
gaku_core-0.3.0.pre.1 lib/gaku/testing/factories/attachment_factory.rb
gaku_core-0.3.0.pre.0 lib/gaku/testing/factories/attachment_factory.rb
gaku-0.2.4 core/lib/gaku/testing/factories/attachment_factory.rb
gaku_core-0.2.4 lib/gaku/testing/factories/attachment_factory.rb
gaku-0.2.3 core/lib/gaku/testing/factories/attachment_factory.rb
gaku_core-0.2.3 lib/gaku/testing/factories/attachment_factory.rb
gaku-0.2.2 core/lib/gaku/testing/factories/attachment_factory.rb
gaku_core-0.2.2 lib/gaku/testing/factories/attachment_factory.rb
gaku-0.2.1 core/lib/gaku/testing/factories/attachment_factory.rb
gaku_core-0.2.1 lib/gaku/testing/factories/attachment_factory.rb
gaku-0.2.0 core/lib/gaku/testing/factories/attachment_factory.rb
gaku_core-0.2.0 lib/gaku/testing/factories/attachment_factory.rb