Sha256: 5a328b7563e0f7a4342a8bd57f085d504addb0f4b228c16fa83dce3f751de6cd

Contents?: true

Size: 800 Bytes

Versions: 8

Compression:

Stored size: 800 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_false, :class => Hubstats::Team do
    name "Team One"
    hubstats false
  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"
    description "description"
    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

8 entries across 8 versions & 1 rubygems

Version Path
hubstats-1.2.1 spec/factories/teams.rb
hubstats-1.2.0 spec/factories/teams.rb
hubstats-1.1.0 spec/factories/teams.rb
hubstats-1.0.0 spec/factories/teams.rb
hubstats-1.0.0.beta3 spec/factories/teams.rb
hubstats-1.0.0.beta2 spec/factories/teams.rb
hubstats-1.0.0.beta1 spec/factories/teams.rb
hubstats-1.0.0.beta spec/factories/teams.rb