Sha256: 46f9da2672680395fa674728914b1f0125d533c56602573e2bb865a4d38d9ea1

Contents?: true

Size: 319 Bytes

Versions: 6

Compression:

Stored size: 319 Bytes

Contents

FactoryGirl.define  do

  factory :teacher, class: Gaku::Teacher do
    name { FFaker::Name.first_name }
    surname { FFaker::Name.last_name }
    name_reading { FFaker::Name.first_name }
    surname_reading { FFaker::Name.last_name }
    gender true

    factory :invalid_teacher do
      name nil
    end
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
gaku_core-0.3.0 lib/gaku/testing/factories/teacher_factory.rb
gaku_core-0.3.0.pre.4 lib/gaku/testing/factories/teacher_factory.rb
gaku_core-0.3.0.pre.3 lib/gaku/testing/factories/teacher_factory.rb
gaku_core-0.3.0.pre.2 lib/gaku/testing/factories/teacher_factory.rb
gaku_core-0.3.0.pre.1 lib/gaku/testing/factories/teacher_factory.rb
gaku_core-0.3.0.pre.0 lib/gaku/testing/factories/teacher_factory.rb