Sha256: 29a4b023bf5cfdd8219cf49f24cea819f1ab89c4f2a9105f327d46fb22f10c89

Contents?: true

Size: 344 Bytes

Versions: 11

Compression:

Stored size: 344 Bytes

Contents

require 'spec_helper'
describe Seko::Stock do

  describe '.parse' do
    it 'returns the relevant stock info' do
      expected_result = fixture(:stock)["Response"]["List"]["StockQuantityLineItem"]
      response        = Seko::Response.new(read_json(:stock))
      expect(Seko::Stock.parse(response)).to eq(expected_result)
    end
  end

end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
seko-0.0.11 spec/lib/stock_spec.rb
seko-0.0.10 spec/lib/stock_spec.rb
seko-0.0.9 spec/lib/stock_spec.rb
seko-0.0.8 spec/lib/stock_spec.rb
seko-0.0.7 spec/lib/stock_spec.rb
seko-0.0.6 spec/lib/stock_spec.rb
seko-0.0.5 spec/lib/stock_spec.rb
seko-0.0.4 spec/lib/stock_spec.rb
seko-0.0.3 spec/lib/stock_spec.rb
seko-0.0.2 spec/lib/stock_spec.rb
seko-0.0.1 spec/lib/stock_spec.rb