Sha256: 93f588344815bf005b7f2053f244bfe10481db0794d6361c4f031e3dc9d9574b

Contents?: true

Size: 698 Bytes

Versions: 18

Compression:

Stored size: 698 Bytes

Contents

require File.dirname(__FILE__) + '/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

18 entries across 18 versions & 1 rubygems

Version Path
fog-0.4.0 spec/vcloud/bin_spec.rb
fog-0.3.34 spec/vcloud/bin_spec.rb
fog-0.3.33 spec/vcloud/bin_spec.rb
fog-0.3.32 spec/vcloud/bin_spec.rb
fog-0.3.31 spec/vcloud/bin_spec.rb
fog-0.3.30 spec/vcloud/bin_spec.rb
fog-0.3.29 spec/vcloud/bin_spec.rb
fog-0.3.28 spec/vcloud/bin_spec.rb
fog-0.3.27 spec/vcloud/bin_spec.rb
fog-0.3.26 spec/vcloud/bin_spec.rb
fog-0.3.25 spec/vcloud/bin_spec.rb
fog-0.3.24 spec/vcloud/bin_spec.rb
fog-0.3.23 spec/vcloud/bin_spec.rb
fog-0.3.22 spec/vcloud/bin_spec.rb
fog-0.3.21 spec/vcloud/bin_spec.rb
fog-0.3.20 spec/vcloud/bin_spec.rb
fog-0.3.19 spec/vcloud/bin_spec.rb
fog-0.3.18 spec/vcloud/bin_spec.rb