Sha256: eabd3068d74a4a6b5165544d5ca8d0531d924e27989e114388afda5e32527329

Contents?: true

Size: 398 Bytes

Versions: 16

Compression:

Stored size: 398 Bytes

Contents

include ActionDispatch::TestProcess

FactoryGirl.define do
  factory :template, class: Gaku::Template do
    name 'Roster Template'
    context 'spreadsheet'
    file do
      fixture_file_upload(Rails.root + '../support/sample_roster.ods',
                          'application/vnd.oasis.opendocument.spreadsheet')
    end
    locked false

    factory(:invalid_template) { name nil }
  end

end

Version data entries

16 entries across 16 versions & 2 rubygems

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