Sha256: e10a00cbf9ec17500cbd909981804aa41b584ba7b12579637ee4a77681a1fa51

Contents?: true

Size: 527 Bytes

Versions: 28

Compression:

Stored size: 527 Bytes

Contents

require "spec_helper"

describe ApiClient::Connection::Abstract do

  class ConnectionSubclass < ApiClient::Connection::Abstract
  end

  it "does not raise an error when instantiating a subclass" do
    lambda {
      ConnectionSubclass.new("http://google.com")
    }.should_not raise_error()
  end

  it "raises an error when instantiating directly and not as a subclass" do
    lambda {
      ApiClient::Connection::Abstract.new("http://google.com")
    }.should raise_error("Cannot instantiate abstract class")
  end

end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
api_client-0.6.0-java spec/api_client/connection/abstract_spec.rb
api_client-0.6.0 spec/api_client/connection/abstract_spec.rb
api_client-0.5.26-java spec/api_client/connection/abstract_spec.rb
api_client-0.5.26 spec/api_client/connection/abstract_spec.rb
api_client-0.5.25-java spec/api_client/connection/abstract_spec.rb
api_client-0.5.25 spec/api_client/connection/abstract_spec.rb
api_client-0.5.24 spec/api_client/connection/abstract_spec.rb
api_client-0.5.22 spec/api_client/connection/abstract_spec.rb
api_client-0.5.21 spec/api_client/connection/abstract_spec.rb
api_client-0.5.20 spec/api_client/connection/abstract_spec.rb
api_client-0.5.19 spec/api_client/connection/abstract_spec.rb
api_client-0.5.18 spec/api_client/connection/abstract_spec.rb
api_client-0.5.17 spec/api_client/connection/abstract_spec.rb
api_client-0.5.16 spec/api_client/connection/abstract_spec.rb
api_client-0.5.15 spec/api_client/connection/abstract_spec.rb
api_client-0.5.14 spec/api_client/connection/abstract_spec.rb
api_client-0.5.13 spec/api_client/connection/abstract_spec.rb
api_client-0.5.12 spec/api_client/connection/abstract_spec.rb
api_client-0.5.11 spec/api_client/connection/abstract_spec.rb
api_client-0.5.9 spec/api_client/connection/abstract_spec.rb