Sha256: a9d0430c1304bd170982e5eecdcac04a5ccc7dd2174897dcb823bb7e9694af41

Contents?: true

Size: 319 Bytes

Versions: 27

Compression:

Stored size: 319 Bytes

Contents

FactoryGirl.define do
  factory :user, :class => Hubstats::User do
    login { Faker::Internet.user_name }
    id {|n| "#{n}".to_i}
    role "User"
  end

  factory :user_hash, class:Hash do
    login { Faker::Internet.user_name }
    id {|n| "#{n}".to_i}
    role "User"

    initialize_with { attributes } 
  end

end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
hubstats-0.3.17 spec/factories/users.rb
hubstats-0.3.16 spec/factories/users.rb
hubstats-0.3.15 spec/factories/users.rb
hubstats-0.3.14 spec/factories/users.rb
hubstats-0.3.13 spec/factories/users.rb
hubstats-0.3.12 spec/factories/users.rb
hubstats-0.3.11 spec/factories/users.rb
hubstats-0.3.10 spec/factories/users.rb
hubstats-0.3.9 spec/factories/users.rb
hubstats-0.3.8 spec/factories/users.rb
hubstats-0.3.7 spec/factories/users.rb
hubstats-0.3.6 spec/factories/users.rb
hubstats-0.3.5 spec/factories/users.rb
hubstats-0.3.4 spec/factories/users.rb
hubstats-0.3.3 spec/factories/users.rb
hubstats-0.3.2 spec/factories/users.rb
hubstats-0.3.1 spec/factories/users.rb
hubstats-0.3.0 spec/factories/users.rb
hubstats-0.2.3 spec/factories/users.rb
hubstats-0.2.2 spec/factories/users.rb