Sha256: eb274c9845bf4cdbca75eb170bea8095ce30711b65883b1658a8b9b5dff8d55b

Contents?: true

Size: 370 Bytes

Versions: 5

Compression:

Stored size: 370 Bytes

Contents

# Generates fake user data we can use to test with
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

5 entries across 5 versions & 1 rubygems

Version Path
hubstats-0.5.4 spec/factories/users.rb
hubstats-0.5.3 spec/factories/users.rb
hubstats-0.5.2 spec/factories/users.rb
hubstats-0.5.1 spec/factories/users.rb
hubstats-0.5.0 spec/factories/users.rb