Sha256: 75b186d3dd9c7ebcb9637ffa4279eba15dc38dfde6aa28b0355867dbcddde581

Contents?: true

Size: 459 Bytes

Versions: 2

Compression:

Stored size: 459 Bytes

Contents

require "minitest/autorun"
require "fog"

describe Fog::Identity do
  Fog::Identity.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::Identity[provider] }
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

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