Sha256: 1d307f583110ec15ed6919fd33dc52a9a28e6dedb7e42486caef71cb093bba07

Contents?: true

Size: 450 Bytes

Versions: 2

Compression:

Stored size: 450 Bytes

Contents

require "minitest/autorun"
require "fog"

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

2 entries across 2 versions & 1 rubygems

Version Path
fog-1.28.0 spec/fog/image_spec.rb
fog-1.27.0 spec/fog/image_spec.rb