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