Sha256: a2854bed49ea60853634700a8792bf4dd452c671746cc9231ae562bb7d601387

Contents?: true

Size: 177 Bytes

Versions: 1

Compression:

Stored size: 177 Bytes

Contents

FactoryBot.define do
  factory :employee do
    name { "John Smith" }

    trait :manager do
    end
  end

  factory :manager, parent: :employee, class: "Manager" do
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dm_preferences-1.6.0 spec/factories/employee_factory.rb