Sha256: 73aee082bf51f823769f3e10ca471b9a5f8cb0cc55db8686fe070e608efa34a1
Contents?: true
Size: 935 Bytes
Versions: 1
Compression:
Stored size: 935 Bytes
Contents
require 'spec_helper' describe Moysklad::Universe do let!(:client) { Moysklad::Client.new } subject { described_class.new client: client } it 'should have a features resoruce' do expect(subject.features).to be_a Moysklad::Resources::Indexed end it do expect(subject.features.resource).to be_a Moysklad::Resources::Features end 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 it do expect(subject.resources_list).to include(:features) 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
moysklad-0.2.0 | spec/lib/moysklad/universe_spec.rb |