spec/support/star_wars_data.rb in graphql-relay-0.4.1 vs spec/support/star_wars_data.rb in graphql-relay-0.4.2
- old
+ new
@@ -35,18 +35,20 @@
rebels = OpenStruct.new({
id: '1',
name: 'Alliance to Restore the Republic',
ships: ['1', '2', '3', '4', '5'],
- bases: Base.where(faction_id: 1)
+ bases: Base.where(faction_id: 1),
+ basesClone: Base.where(faction_id: 1),
})
empire = OpenStruct.new({
id: '2',
name: 'Galactic Empire',
ships: ['6', '7', '8'],
- bases: Base.where(faction_id: 2)
+ bases: Base.where(faction_id: 2),
+ basesClone: Base.where(faction_id: 2),
})
STAR_WARS_DATA = {
"Faction" => {
"1" => rebels,