Sha256: a9c92cff25915224859aabc92d7a5d859f97034ed79516b58c03f7eecaf98ac3

Contents?: true

Size: 431 Bytes

Versions: 26

Compression:

Stored size: 431 Bytes

Contents

require "spec_helper"

describe Fog::Image do
  Fog::Image.providers.each do |provider|
    describe "when #{provider} is passed with no available credentials" do
      it "returns ArgumentError" do
        # Stub credentials so you still see errors where the tester really has credentials
        Fog.stub :credentials, {} do
          assert_raises(ArgumentError) { Fog::Image[provider] }
        end
      end
    end
  end
end

Version data entries

26 entries across 24 versions & 5 rubygems

Version Path
fog-1.34.0 spec/fog/image_spec.rb
fog-1.33.0 spec/fog/image_spec.rb
fog-1.32.0 spec/fog/image_spec.rb
fog-1.31.0 spec/fog/image_spec.rb
fog-1.30.0 spec/fog/image_spec.rb
fog-1.29.0 spec/fog/image_spec.rb