Sha256: 1350aa60269d7c294e91598e9176f6dd3036943bd9e6fcea21933d084ccfa13e

Contents?: true

Size: 456 Bytes

Versions: 2

Compression:

Stored size: 456 Bytes

Contents

require "minitest/autorun"
require "fog"

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

Version data entries

2 entries across 2 versions & 1 rubygems

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