Sha256: 149d4a21c947fcdfbf4178b0f58fe2252c5102d84ea54e167042ccd334066f4b

Contents?: true

Size: 653 Bytes

Versions: 16

Compression:

Stored size: 653 Bytes

Contents

require 'spec_helper'

describe Moysklad::Universe do
  let!(:client) { Moysklad::Client.new }

  subject { described_class.new client: client }

  it do
    expect(subject.embedded_entity_metadata.resource).to be_a Moysklad::Resources::EmbeddedEntityMetadata
  end

  it do 
    expect(subject.resources_list).to have_at_least(10).items
  end

  describe '.build' do
    let(:login)    { 'alala' }
    let(:password) { 'ulala' }

    subject { described_class.build login: login, password: password }

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

    it do
      expect(subject.client).to be_a Moysklad::Client
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
moysklad-0.5 spec/lib/moysklad/universe_spec.rb
moysklad-0.4.10 spec/lib/moysklad/universe_spec.rb
moysklad-0.4.9 spec/lib/moysklad/universe_spec.rb
moysklad-0.4.8 spec/lib/moysklad/universe_spec.rb
moysklad-0.4.7 spec/lib/moysklad/universe_spec.rb
moysklad-0.4.6 spec/lib/moysklad/universe_spec.rb
moysklad-0.4.5 spec/lib/moysklad/universe_spec.rb
moysklad-0.4.4 spec/lib/moysklad/universe_spec.rb
moysklad-0.4.3 spec/lib/moysklad/universe_spec.rb
moysklad-0.4.2 spec/lib/moysklad/universe_spec.rb
moysklad-0.4.1 spec/lib/moysklad/universe_spec.rb
moysklad-0.4.0 spec/lib/moysklad/universe_spec.rb
moysklad-0.3.4 spec/lib/moysklad/universe_spec.rb
moysklad-0.3.3 spec/lib/moysklad/universe_spec.rb
moysklad-0.3.2 spec/lib/moysklad/universe_spec.rb
moysklad-0.3.1 spec/lib/moysklad/universe_spec.rb