discourse/vendor/gems/rails_multisite/spec/spec_helper.rb

18 lines
299 B
Ruby
Raw Normal View History

2013-02-06 03:16:51 +08:00
require 'rubygems'
require 'rails'
require 'active_record'
ENV["RAILS_ENV"] ||= 'test'
RSpec.configure do |config|
config.color_enabled = true
2013-02-26 00:42:20 +08:00
2013-02-06 03:16:51 +08:00
config.before(:suite) do
ActiveRecord::Base.configurations['test'] = (YAML::load(File.open("spec/fixtures/database.yml"))['test'])
end
end