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