Sha256: cddaf7816baa394e5d18fa285847a366328c116234abda31a29234ba470081d5

Contents?: true

Size: 245 Bytes

Versions: 10

Compression:

Stored size: 245 Bytes

Contents

%w( class_group course extracurricular_activity ).each do |resource|
  FactoryGirl.define do

    factory "#{resource}_enrollment", class: Gaku::Enrollment do
      student
      association :enrollmentable, factory: resource
    end

  end
end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
gaku-0.2.4 core/lib/gaku/testing/factories/enrollment_factory.rb
gaku_core-0.2.4 lib/gaku/testing/factories/enrollment_factory.rb
gaku-0.2.3 core/lib/gaku/testing/factories/enrollment_factory.rb
gaku_core-0.2.3 lib/gaku/testing/factories/enrollment_factory.rb
gaku-0.2.2 core/lib/gaku/testing/factories/enrollment_factory.rb
gaku_core-0.2.2 lib/gaku/testing/factories/enrollment_factory.rb
gaku-0.2.1 core/lib/gaku/testing/factories/enrollment_factory.rb
gaku_core-0.2.1 lib/gaku/testing/factories/enrollment_factory.rb
gaku-0.2.0 core/lib/gaku/testing/factories/enrollment_factory.rb
gaku_core-0.2.0 lib/gaku/testing/factories/enrollment_factory.rb