Sha256: 5bc6b3b64654ce02ac6c01cf3225209dcff3f9af9a3da63bf5266fcab423ed10
Contents?: true
Size: 677 Bytes
Versions: 2
Compression:
Stored size: 677 Bytes
Contents
require "minitest/autorun" require "fog" describe Fog::Compute do Fog::Compute.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 # These providers do not raise ArgumentError since they have no requirements defined if [:openvz, :vmfusion].include?(provider) assert Fog::Compute[provider] else assert_raises(ArgumentError) { Fog::Compute[provider] } end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fog-1.28.0 | spec/fog/compute_spec.rb |
fog-1.27.0 | spec/fog/compute_spec.rb |