Sha256: 1b0fc61c48064463791ef76367176e89886b31da0f8683412ced501ae2fda781
Contents?: true
Size: 563 Bytes
Versions: 3
Compression:
Stored size: 563 Bytes
Contents
require 'spec_helper' describe Dbcp::Database do describe ".build" do context "supported type" do specify { expect(Dbcp::Database.build 'adapter' => 'postgresql').to be_a(Dbcp::PostgresDatabase) } end context "no type" do specify { expect { Dbcp::Database.build 'adapter' => nil}.to raise_error(Dbcp::Database::BlankDatabaseDefinition) } end context "unsupported type" do specify { expect { Dbcp::Database.build 'adapter' => 'unsupported'}.to raise_error(Dbcp::Database::UnsupportedDatabaseAdapter) } end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
dbcp-0.2.1 | spec/lib/dbcp/database_spec.rb |
dbcp-0.2.0 | spec/lib/dbcp/database_spec.rb |
dbcp-0.1.0 | spec/lib/dbcp/database_spec.rb |