Sha256: b8d139b1f1cb3cf6b95d1d725e91c3ba1ae91461c563c006d40dcbb04f60dda8
Contents?: true
Size: 562 Bytes
Versions: 19
Compression:
Stored size: 562 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("Cannot instantiate abstract class") 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
19 entries across 19 versions & 1 rubygems