Sha256: 6ff34fd886c83ccc81e56cb10b5ca8e44d65ea20b22951f4c51efb44a27318d7

Contents?: true

Size: 679 Bytes

Versions: 9

Compression:

Stored size: 679 Bytes

Contents

require 'vcloud/spec_helper'

describe Vcloud do
  it { should be_initialized }

  it { should have_at_least(1).services }

  describe "#registered_services" do
    subject { Vcloud.registered_services }

    it { should have_at_least(1).services }
  end

  describe "when indexing it like an array" do
    describe "with a service that exists" do
      it "should return something when indexed with a configured service" do
        Vcloud[:ecloud].should_not be_nil
      end
    end

    describe "with a service that does not exist" do
      it "should raise an ArgumentError" do
        lambda {Vcloud[:foozle]}.should raise_error(ArgumentError)
      end
    end

  end
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
fog-0.5.3 spec/vcloud/bin_spec.rb
fog-0.5.2 spec/vcloud/bin_spec.rb
fog-0.5.1 spec/vcloud/bin_spec.rb
fog-0.5.0 spec/vcloud/bin_spec.rb
phpfog-fog-0.4.1.3 spec/vcloud/bin_spec.rb
phpfog-fog-0.4.1.2 spec/vcloud/bin_spec.rb
phpfog-fog-0.4.1.1 spec/vcloud/bin_spec.rb
phpfog-fog-0.4.1 spec/vcloud/bin_spec.rb
fog-0.4.1 spec/vcloud/bin_spec.rb