Sha256: 8a56ce10659d69cdc4f474afbdfe9191f2cbcff1e9dd5b5445dd91066e205c87

Contents?: true

Size: 397 Bytes

Versions: 6

Compression:

Stored size: 397 Bytes

Contents

require 'spec_helper'

describe Moysklad::Resources::Countries do
  before do
    stub_rest 'Country'
  end

  subject { described_class.new client: client }

  it do
    expect(subject.list.count).to eq 248
  end

  it  do
    expect(subject.send(:list_path)).to  eq "exchange/rest/ms/xml/Country/list"
  end

  it do
    expect(subject.list.first).to be_a Moysklad::Entities::Country
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

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