Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

23 lines (18 sloc) 0.492 kb
require 'active_record'
require 'logger'
require 'yaml'
module CryptKeeperProviders
module ActiveRecord
# extend self
def use_postgres
before :all do
config = YAML.load_file SPEC_ROOT.join('database.yml')
::ActiveRecord::Base.establish_connection(config['test'])
::ActiveRecord::Base.logger = Logger.new SPEC_ROOT.join('debug.log').to_s
end
end
end
end
RSpec.configure do |config|
config.extend CryptKeeperProviders::ActiveRecord
end
Jump to Line
Something went wrong with that request. Please try again.