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.0.3 spec/factories/remote/tournament.rb
synchronisable-1.0.2 spec/factories/remote/tournament.rb
synchronisable-1.0.1 spec/factories/remote/tournament.rb
synchronisable-1.0.0 spec/factories/remote/tournament.rb
synchronisable-0.0.9 spec/factories/remote/tournament.rb
synchronisable-0.0.8 spec/factories/remote/tournament.rb
synchronisable-0.0.7 spec/factories/remote/tournament.rb
synchronisable-0.0.6 spec/factories/remote/tournament.rb
synchronisable-0.0.5 spec/factories/remote/tournament.rb
synchronisable-0.0.4 spec/factories/remote/tournament.rb
synchronisable-0.0.3 spec/factories/remote/tournament.rb
synchronisable-0.0.2 spec/factories/remote/tournament.rb