Sha256: 479a40bc565021aa83537f894ec4dadb446236ccbbda584faf69e4ec19d757e6
Contents?: true
Size: 845 Bytes
Versions: 1
Compression:
Stored size: 845 Bytes
Contents
FactoryGirl.define do sequence :email do |n| 'example.user.%d@digital.justice.gov.uk' % n end factory :department, class: 'Peoplefinder::Group' do initialize_with do Peoplefinder::Group.where(ancestry_depth: 0).first_or_create(name: 'Ministry of Justice') end team_email_address { generate(:email) } end factory :group, class: 'Peoplefinder::Group' do sequence :name do |n| 'Group-%04d' % n end team_email_address { generate(:email) } association :parent, factory: :department end factory :person, class: 'Peoplefinder::Person' do sequence :surname do |n| 'Surname-%04d' % n end end factory :membership, class: 'Peoplefinder::Membership' do person group end factory :token, class: 'Peoplefinder::Token' do user_email { generate(:email) } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
peoplefinder-0.0.2 | spec/factories.rb |