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