Sha256: c3f210ac380cff6fd8ee36dff57752f69b4e7c49654cb0b414332ecf54cbef29

Contents?: true

Size: 543 Bytes

Versions: 3

Compression:

Stored size: 543 Bytes

Contents

require 'fog/openstack/image_v1'

if RUBY_VERSION =~ /1.8/
  require File.expand_path('../shared_context', __FILE__)
else
  require_relative './shared_context'
end

RSpec.describe Fog::Image::OpenStack do

  include_context 'OpenStack specs with VCR'
  before :all do
    setup_vcr_and_service(
        :vcr_directory => 'spec/fog/openstack/image_v1',
        :service_class => Fog::Image::OpenStack::V1
    )
  end

  it 'lists available images' do
    VCR.use_cassette('list_images') do
      @images = @service.images.all
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
fog-1.37.0 spec/fog/openstack/image_v1_spec.rb
fog-1.36.0 spec/fog/openstack/image_v1_spec.rb
fog-1.35.0 spec/fog/openstack/image_v1_spec.rb