Sha256: 3a6e98207aa2fffa0afc11979a799c898c1b30f2bf2790a1233fa9813a313dd1

Contents?: true

Size: 684 Bytes

Versions: 1

Compression:

Stored size: 684 Bytes

Contents

require 'spec/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

1 entries across 1 versions & 1 rubygems

Version Path
fog-0.3.17 spec/vcloud/bin_spec.rb