Browse Source

Testing exploding quantities on xlsx

dev
Andy Meneely 10 years ago
parent
commit
88686fd9ea
  1. 7
      spec/api/api_data_spec.rb
  2. BIN
      spec/data/xlsx/explode_quantities.xlsx

7
spec/api/api_data_spec.rb

@ -106,5 +106,12 @@ describe Squib::Deck do
})
end
it 'explodes quantities' do
expect(Squib.xlsx(explode: 'Qty', file: xlsx_file('explode_quantities.xlsx'))).to eq({
'Name' => ['Zergling', 'Zergling', 'Zergling', 'High Templar'],
'Qty' => %w(3 3 3 1),
})
end
end
end

BIN
spec/data/xlsx/explode_quantities.xlsx

Binary file not shown.
Loading…
Cancel
Save