Sha256: 428e8b6d0a8d14765e6de02a2233db7574a3f9899378592aee6760bd8345cfe7

Contents?: true

Size: 208 Bytes

Versions: 8

Compression:

Stored size: 208 Bytes

Contents

require 'uuidtools'
FactoryGirl.define do

  factory :user do
    sequence(:name) { |i| "Regular User #{i}" }
  end

  factory :admin do
    sequence(:name) { UUIDTools::UUID.random_create.to_str }
  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
acts_as_amico-0.2.8 spec/factories/people.rb
acts_as_amico-0.2.7 spec/factories/people.rb
acts_as_amico-0.2.6 spec/factories/people.rb
acts_as_amico-0.2.4 spec/factories/people.rb
acts_as_amico-0.2.2 spec/factories/people.rb
acts_as_amico-0.2.0 spec/factories/people.rb
acts_as_amico-0.1.1 spec/factories/people.rb
acts_as_amico-0.1.0 spec/factories/people.rb