Sha256: da55b48bf7b7f58bf5cf887881ce518c431bf01a337f509ec3777ae705b77ce6

Contents?: true

Size: 356 Bytes

Versions: 6

Compression:

Stored size: 356 Bytes

Contents

require 'spec_helper'

describe Moysklad::Resources::Warehouses do

  before do
    stub_rest 'Warehouse'
  end

  describe do
    subject { described_class.new client: client }
    it do
      expect(subject.list.count).to eq 2
    end

    it 'should get list' do
      expect(subject.list.first).to be_a Moysklad::Entities::Warehouse
    end
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
moysklad-0.3.0 spec/lib/moysklad/resources/warehouses_spec.rb
moysklad-0.2.1 spec/lib/moysklad/resources/warehouses_spec.rb
moysklad-0.2.0 spec/lib/moysklad/resources/warehouses_spec.rb
moysklad-0.1.5 spec/lib/moysklad/resources/warehouses_spec.rb
moysklad-0.1.4 spec/lib/moysklad/resources/warehouses_spec.rb
moysklad-0.1.3 spec/lib/moysklad/resources/warehouses_spec.rb