Sha256: 5f44553cdfdc13c449718c8ae6ce7f0fc8d68e6cc9ef44445b8de0e1b33025d5

Contents?: true

Size: 567 Bytes

Versions: 18

Compression:

Stored size: 567 Bytes

Contents

require File.expand_path("../../spec_helper", __FILE__)

module Bamboo
  describe Client do
    it "returns a client for the REST API" do
      client = Client.for :rest, "http://bamboo.com"

      client.should be_kind_of(Client::Rest)
    end

    it "returns a client for the Remote API" do
      client = Client.for :remote, "http://bamboo.com"

      client.should be_kind_of(Client::Remote)
    end

    it "raises ArgumentError if the client is unknown" do
      lambda { Client.for :foo, "http://foo.com" }.should raise_error(ArgumentError)
    end
  end

end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
bamboo-client-0.1.9 spec/bamboo-client/client_spec.rb
bamboo-client-0.1.8 spec/bamboo-client/client_spec.rb
bamboo-client-0.1.7 spec/bamboo-client/client_spec.rb
bamboo-client-0.1.6 spec/bamboo-client/client_spec.rb
bamboo-client-0.1.5 spec/bamboo-client/client_spec.rb
bamboo-client-0.1.4 spec/bamboo-client/client_spec.rb
bamboo-client-0.1.3 spec/bamboo-client/client_spec.rb
bamboo-client-0.1.2 spec/bamboo-client/client_spec.rb
bamboo-client-0.1.1 spec/bamboo-client/client_spec.rb
bamboo-client-0.1.0 spec/bamboo-client/client_spec.rb
bamboo-client-0.0.9 spec/bamboo-client/client_spec.rb
bamboo-client-0.0.8 spec/bamboo-client/client_spec.rb
bamboo-client-0.0.6 spec/bamboo-client/client_spec.rb
bamboo-client-0.0.5 spec/bamboo-client/client_spec.rb
bamboo-client-0.0.4 spec/bamboo-client/client_spec.rb
bamboo-client-0.0.3 spec/bamboo-client/client_spec.rb
bamboo-client-0.0.2 spec/bamboo-client/client_spec.rb
bamboo-client-0.0.1 spec/bamboo-client/client_spec.rb