Sha256: c222cb33a155e3e98e6284c71168721379797d2a3ad205d5a659c092198b3d33

Contents?: true

Size: 409 Bytes

Versions: 8

Compression:

Stored size: 409 Bytes

Contents

module Tests
  module DatabaseAdapters
    class PostgreSQL
      def self.name
        :postgresql
      end

      attr_reader :database

      def initialize(database)
        @database = database
      end

      def adapter
        self.class.name
      end

      def require_dependencies
        require 'pg'
      end
    end

    DatabaseConfigurationRegistry.instance.register(PostgreSQL)
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
shoulda-matchers-3.1.3 spec/support/tests/database_adapters/postgresql.rb
shoulda-matchers-4.0.0.rc1 spec/support/tests/database_adapters/postgresql.rb
shoulda-matchers-3.1.2 spec/support/tests/database_adapters/postgresql.rb
shoulda-matchers-3.1.1 spec/support/tests/database_adapters/postgresql.rb
shoulda-matchers-3.1.0 spec/support/tests/database_adapters/postgresql.rb
shoulda-matchers-3.0.1 spec/support/tests/database_adapters/postgresql.rb
shoulda-matchers-3.0.0 spec/support/tests/database_adapters/postgresql.rb
shoulda-matchers-3.0.0.rc1 spec/support/tests/database_adapters/postgresql.rb