Sha256: da484a1d757a4d46886a24bec17f1fd18ebcd462811aa5542c2abef25e2cb3fd

Contents?: true

Size: 492 Bytes

Versions: 3

Compression:

Stored size: 492 Bytes

Contents

require 'spec_helper'

describe Smartdc::Api::Images do
  describe ".images", vcr: { cassette_name: 'images/index' } do
    it "receives list of images" do
      expect(Smartdc.images.content.count).to be > 0
    end
  end

  describe ".image", vcr: { cassette_name: 'images/show' } do
    let(:id) do
      VCR.use_cassette('images/index') { Smartdc.images.content.first['id'] }
    end

    it "receives a image" do
      expect(Smartdc.image(id).content['id']).to eq(id)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
smartdc-2.0.2 spec/smartdc/api/images_spec.rb
smartdc-2.0.1 spec/smartdc/api/images_spec.rb
smartdc-2.0.0 spec/smartdc/api/images_spec.rb