Create GridSummon factory
This commit is contained in:
parent
d81119bf64
commit
cdfdec0fa7
1 changed files with 17 additions and 0 deletions
17
spec/factories/grid_summons.rb
Normal file
17
spec/factories/grid_summons.rb
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
# frozen_string_literal: true
|
||||
# spec/factories/grid_summons.rb
|
||||
|
||||
FactoryBot.define do
|
||||
factory :grid_summon do
|
||||
association :party
|
||||
# Use the canonical (seeded) Summon record.
|
||||
# Make sure your CSV canonical data (loaded via canonical.rb) includes a Summon with the specified granblue_id.
|
||||
summon { Summon.find_by!(granblue_id: '2040433000') }
|
||||
position { 1 }
|
||||
uncap_level { 3 }
|
||||
transcendence_step { 0 }
|
||||
main { false }
|
||||
friend { false }
|
||||
quick_summon { false }
|
||||
end
|
||||
end
|
||||
Loading…
Reference in a new issue