spec/lib/moysklad/entities/good_spec.rb in moysklad-0.2.1 vs spec/lib/moysklad/entities/good_spec.rb in moysklad-0.3.0
- old
+ new
@@ -41,6 +41,15 @@
expect(good.attributes).to be_a Array
expect(good.attributes.first).to be_a Moysklad::Entities::Attribute
end
end
+ describe 'image' do
+ let(:xml) { File.read './spec/fixtures/good_with_image.xml' }
+ subject { described_class.parse xml }
+
+ it do
+ expect(subject.images.image.count).to eq 1
+ end
+ end
+
end