1
0
Fork 0
mirror of https://github.com/thoughtbot/shoulda-matchers.git synced 2022-11-09 12:01:38 -05:00
thoughtbot--shoulda-matchers/spec/support/tests/database_adapters/postgresql.rb

26 lines
409 B
Ruby
Raw Normal View History

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