Sha256: 7b309b4156c7deaf4e021b0a8faa3180f11902c59d0f27f7428d468fce114b17

Contents?: true

Size: 455 Bytes

Versions: 26

Compression:

Stored size: 455 Bytes

Contents

require "spec_helper"

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

Version data entries

26 entries across 24 versions & 5 rubygems

Version Path
fog-2.3.0 spec/fog/orchestration_spec.rb
fog-ifeel-2.2.0 spec/fog/orchestration_spec.rb
fog-2.2.0 spec/fog/orchestration_spec.rb
fog-2.1.0 spec/fog/orchestration_spec.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-1.42.1/spec/fog/orchestration_spec.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-1.42.1/spec/fog/orchestration_spec.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-1.42.1/spec/fog/orchestration_spec.rb
fog-1.42.1 spec/fog/orchestration_spec.rb
fog-2.0.0 spec/fog/orchestration_spec.rb
fog-1.42.0 spec/fog/orchestration_spec.rb
fog-1.41.0 spec/fog/orchestration_spec.rb
fog-1.40.0 spec/fog/orchestration_spec.rb
fog-1.39.0 spec/fog/orchestration_spec.rb
fog-digitalocean-0.1.0 spec/fog/orchestration_spec.rb
fog-1.38.0 spec/fog/orchestration_spec.rb
fog-1.37.0 spec/fog/orchestration_spec.rb
fog-1.36.0 spec/fog/orchestration_spec.rb
fog-1.35.0 spec/fog/orchestration_spec.rb
fog-2.0.0.pre.0 spec/fog/orchestration_spec.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-1.32.0/spec/fog/orchestration_spec.rb