Sha256: 4e020a41caf66cadd2b40b9958020000d3d02de6da5f3d90c6b3a2d7b28e4bd2
Contents?: true
Size: 553 Bytes
Versions: 11
Compression:
Stored size: 553 Bytes
Contents
require 'spec_helper' describe Seko::Product do let(:product_hash) { { upc: 123456, description: "A Test Product" } } before do Seko.configure(configuration) end describe '.supplier' do it 'reads supplier deatils from config' do expect(Seko.config).to eq(configuration) end end describe '.format' do it 'formats a simple product hash into a fully formed JSON ready hash' do expected_result = fixture(:product_submit) expect(Seko::Product.format(product_hash)).to eq(expected_result) end end end
Version data entries
11 entries across 11 versions & 1 rubygems