discourse/vendor/gems/rails_multisite/spec/spec_helper.rb
2013-02-05 14:16:51 -05:00

17 lines
301 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