Skip to content

Commit 73ac0ac

Browse files
committed
add new store to specs
1 parent 4ed9068 commit 73ac0ac

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

spec/models/bling_order_item_spec.rb

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,14 +288,17 @@
288288
let!(:simplo7_order_item) { FactoryBot.create(:bling_order_item, store_id: 203_467_890) }
289289
let!(:mercado_livre_order_item) { FactoryBot.create(:bling_order_item, store_id: 204_061_683) }
290290
let!(:nuvem_shop) { FactoryBot.create(:bling_order_item, store_id: 204_796_870) }
291+
let!(:feira_da_madrugada) { FactoryBot.create(:bling_order_item, store_id: 204_824_954) }
292+
let!(:magazine_luiza) { FactoryBot.create(:bling_order_item, store_id: 205_002_864) }
291293
let!(:without_store) { FactoryBot.create(:bling_order_item, store_id: 0) }
292294

293295
it 'return a hash with all stores' do
294296
expect(group_order_items).to(match({ 'Shein' => [shein_order_item], 'Shopee' => [shopee_order_item],
295297
'Simplo 7' => [simplo7_order_item],
296298
'Mercado Livre' => [mercado_livre_order_item],
297299
'Nuvem Shop' => [nuvem_shop],
298-
'Feira da Madrugada' => [],
300+
'Feira da Madrugada' => [feira_da_madrugada],
301+
'Magazine Luiza' => [magazine_luiza],
299302
'Sem Loja' => [without_store] }))
300303
end
301304
end
@@ -307,7 +310,8 @@
307310
let!(:old_shein_order_item) { FactoryBot.create(:bling_order_item, store_id: 204_114_350) }
308311
let(:grouped_hash) do
309312
{ 'Shein' => [shein_order_item, old_shein_order_item], 'Shopee' => [], 'Simplo 7' => [], 'Mercado Livre' => [],
310-
'Nuvem Shop' => [], 'Feira da Madrugada' => [], 'Sem Loja' => [] }
313+
'Nuvem Shop' => [], 'Feira da Madrugada' => [], 'Magazine Luiza' => [],
314+
'Sem Loja' => [] }
311315
end
312316

313317
it 'return the corresponding store with empty array' do
@@ -323,6 +327,7 @@
323327
'Mercado Livre' => [],
324328
'Nuvem Shop' => [],
325329
'Feira da Madrugada' => [],
330+
'Magazine Luiza' => [],
326331
'Sem Loja' => [] }))
327332
end
328333
end

0 commit comments

Comments
 (0)