Sha256: 206ad3893180a026e90e60f3718a966dbb10b02f8296b343b10a988fb13a0307

Contents?: true

Size: 478 Bytes

Versions: 6

Compression:

Stored size: 478 Bytes

Contents

require 'spec_helper'

describe Moysklad::Entities::Country do

  before do
    stub_rest :Country, :list, 0
  end

  let(:resource) { Moysklad::Resources::Countries.indexed client: client }

  describe do
    let(:country) { resource.all.first }

    subject { country }

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

    it 'unicoded xml' do
      expect(subject.to_xml).to start_with '<?xml version="1.0" encoding="utf-8"?>'
    end

  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
moysklad-0.3.0 spec/lib/moysklad/entities/country_spec.rb
moysklad-0.2.1 spec/lib/moysklad/entities/country_spec.rb
moysklad-0.2.0 spec/lib/moysklad/entities/country_spec.rb
moysklad-0.1.5 spec/lib/moysklad/entities/country_spec.rb
moysklad-0.1.4 spec/lib/moysklad/entities/country_spec.rb
moysklad-0.1.3 spec/lib/moysklad/entities/country_spec.rb