mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-20 12:32:39 -05:00
17 lines
299 B
Ruby
17 lines
299 B
Ruby
require 'rubygems'
|
|
require 'rails'
|
|
require 'active_record'
|
|
|
|
|
|
ENV["RAILS_ENV"] ||= 'test'
|
|
RSpec.configure do |config|
|
|
|
|
config.color_enabled = true
|
|
|
|
config.before(:suite) do
|
|
ActiveRecord::Base.configurations['test'] = (YAML::load(File.open("spec/fixtures/database.yml"))['test'])
|
|
end
|
|
|
|
end
|
|
|
|
|