mirror of
https://github.com/thoughtbot/shoulda-matchers.git
synced 2022-11-09 12:01:38 -05:00
26 lines
409 B
Ruby
26 lines
409 B
Ruby
|
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
|