Sha256: 7b36b3b06c7ec6947690572faba05f114e1c739168df27d2bf9b94a0dcbe65a1

Contents?: true

Size: 198 Bytes

Versions: 38

Compression:

Stored size: 198 Bytes

Contents

FactoryGirl.define do
  factory :match_player do
    association :player
    association :match

    formation_index { rand(10) + 1 }
    ref_type        { MatchPlayer::REF_TYPES.sample }
  end
end

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
synchronisable-1.3.1 spec/factories/match_player.rb
synchronisable-1.3.0 spec/factories/match_player.rb
synchronisable-1.2.7 spec/factories/match_player.rb
synchronisable-1.2.6 spec/factories/match_player.rb
synchronisable-1.2.5 spec/factories/match_player.rb
synchronisable-1.2.4 spec/factories/match_player.rb
synchronisable-1.2.3 spec/factories/match_player.rb
synchronisable-1.2.2 spec/factories/match_player.rb
synchronisable-1.2.1 spec/factories/match_player.rb
synchronisable-1.2.0 spec/factories/match_player.rb
synchronisable-1.1.9 spec/factories/match_player.rb
synchronisable-1.1.8 spec/factories/match_player.rb
synchronisable-1.1.7 spec/factories/match_player.rb
synchronisable-1.1.6 spec/factories/match_player.rb
synchronisable-1.1.5 spec/factories/match_player.rb
synchronisable-1.1.4 spec/factories/match_player.rb
synchronisable-1.1.3 spec/factories/match_player.rb
synchronisable-1.1.2 spec/factories/match_player.rb
synchronisable-1.1.1 spec/factories/match_player.rb
synchronisable-1.1.0 spec/factories/match_player.rb