Sha256: c81f67faa967937e2817da2f788373fffa21c47360c2ea60e807859e463d7a42

Contents?: true

Size: 677 Bytes

Versions: 12

Compression:

Stored size: 677 Bytes

Contents

# Generates fake team data we can use to test with
FactoryGirl.define do
  factory :team, :class => Hubstats::Team do
    name "Team One"
    hubstats true
  end

  factory :team_hash, class:Hash do
    association :user, factory: :user_hash, strategy: :build
    id {Faker::Number.number(6).to_i}
    name "Team One"
    hubstats true
    action "added"
    initialize_with { attributes } 
  end

  factory :team_payload_hash, class:Hash do 
    id {Faker::Number.number(6).to_i}
    type "MembershipEvent"
    association :user, factory: :user_hash, strategy: :build
    association :team, factory: :team_hash, strategy: :build
    initialize_with { attributes } 
  end 
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
hubstats-0.5.12 spec/factories/teams.rb
hubstats-0.5.11 spec/factories/teams.rb
hubstats-0.5.10 spec/factories/teams.rb
hubstats-0.5.9 spec/factories/teams.rb
hubstats-0.5.7 spec/factories/teams.rb
hubstats-0.5.6 spec/factories/teams.rb
hubstats-0.5.5 spec/factories/teams.rb
hubstats-0.5.4 spec/factories/teams.rb
hubstats-0.5.3 spec/factories/teams.rb
hubstats-0.5.2 spec/factories/teams.rb
hubstats-0.5.1 spec/factories/teams.rb
hubstats-0.5.0 spec/factories/teams.rb