Sha256: 34b1bbcb093b7101001a792530518df11e8864e63bee5702d8fc771521dd5770

Contents?: true

Size: 582 Bytes

Versions: 4

Compression:

Stored size: 582 Bytes

Contents

FactoryGirl.define do
  factory :user, class: OpenConferenceWare::User do
    sequence(:first_name) {|n| "user_first_name-#{n}" }
    sequence(:last_name)  {|n| "user_last_name-#{n}" }
    affiliation "My affiliation"
    email
    website
    blog_url { generate(:website) }
    biography "My biography"
    complete_profile true
    identica { |record| record.fullname.gsub(/[^\w]/, '_').downcase }
    twitter { |record| record.fullname.gsub(/[^\w]/, '_').downcase }

    factory :admin do
      admin true
    end

    factory :selector do
      selector true
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
open_conference_ware-1.0.0.pre4 spec/factories/user_factory.rb
open_conference_ware-1.0.0.pre3 spec/factories/user_factory.rb
open_conference_ware-1.0.0.pre2 spec/factories/user_factory.rb
open_conference_ware-1.0.0.pre1 spec/factories/user_factory.rb