Sha256: 0bd80d15ad5aa54969c96b9f7815f88259494aaf275d47eb6424f025a81e448f

Contents?: true

Size: 395 Bytes

Versions: 1

Compression:

Stored size: 395 Bytes

Contents

require 'spec_helper'

describe Dbcp::Database do
  describe ".build" do
    context "valid type" do
      specify { expect(Dbcp::Database.build 'adapter' => 'postgresql').to be_a(Dbcp::PostgresDatabase) }
    end

    context "invalid type" do
      specify { expect { Dbcp::Database.build 'adapter' => 'invalid'}.to raise_error(Dbcp::Database::UnsupportedDatabaseAdapter) }
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dbcp-0.0.1 spec/lib/dbcp/database_spec.rb