Sha256: e474570b316b2ea18b927218a5e3f9274f271003174d565a871d939e5587d536
Contents?: true
Size: 771 Bytes
Versions: 137
Compression:
Stored size: 771 Bytes
Contents
# Load Silence Functionality require File.expand_path(File.dirname(__FILE__) + "/../../../test/silence.rb") # Load Environment silence_warnings do ENV["RAILS_ENV"] = "test" require File.expand_path('../../config/environment', __FILE__) require 'rails/test_help' end # Load Riot Test Environment require File.expand_path(File.dirname(__FILE__) + "/../../../test/integration/test_init.rb") # Run Migrations silence_stream(STDOUT) do dbconf = YAML::load(File.open('config/database.yml'))[Rails.env] ActiveRecord::Base.establish_connection(dbconf) ActiveRecord::Base.logger = Logger.new(File.open('log/database.log', 'a')) silence_stream(STDOUT) { ActiveRecord::Migrator.up('db/migrate') } end class Riot::Situation def app Rails.application end end
Version data entries
137 entries across 77 versions & 2 rubygems