Sha256: eae238a95b4c158b3d230920f678bcc7fae3e0cb0fdb2e2236571d683c4d150e

Contents?: true

Size: 519 Bytes

Versions: 32

Compression:

Stored size: 519 Bytes

Contents

FactoryGirl.define do
  factory :remote_tournament, class: Hash do
    tour_id    { generate :tournament_id }
    eman       { generate :string }
    eman_trohs { generate :string }
    gninnigeb  { generate :date }
    gnidge     { generate :date }

    initialize_with { attributes }

    trait :with_stages do
      after(:build) do |object, evaluator|
        stages = build_list(:remote_stage, 2, tour_id: object[:tour_id])
        object[:stages_ids] = stages.map { |h| h[:stage_id] }
      end
    end
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
synchronisable-1.2.3 spec/factories/remote/tournament.rb
synchronisable-1.2.2 spec/factories/remote/tournament.rb
synchronisable-1.2.1 spec/factories/remote/tournament.rb
synchronisable-1.2.0 spec/factories/remote/tournament.rb
synchronisable-1.1.9 spec/factories/remote/tournament.rb
synchronisable-1.1.8 spec/factories/remote/tournament.rb
synchronisable-1.1.7 spec/factories/remote/tournament.rb
synchronisable-1.1.6 spec/factories/remote/tournament.rb
synchronisable-1.1.5 spec/factories/remote/tournament.rb
synchronisable-1.1.4 spec/factories/remote/tournament.rb
synchronisable-1.1.3 spec/factories/remote/tournament.rb
synchronisable-1.1.2 spec/factories/remote/tournament.rb
synchronisable-1.1.1 spec/factories/remote/tournament.rb
synchronisable-1.1.0 spec/factories/remote/tournament.rb
synchronisable-1.0.9 spec/factories/remote/tournament.rb
synchronisable-1.0.8 spec/factories/remote/tournament.rb
synchronisable-1.0.7 spec/factories/remote/tournament.rb
synchronisable-1.0.6 spec/factories/remote/tournament.rb
synchronisable-1.0.5 spec/factories/remote/tournament.rb
synchronisable-1.0.4 spec/factories/remote/tournament.rb