Skip to content
This repository
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 25 lines (19 sloc) 0.607 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
# Configure Rails Environment
ENV['RAILS_ENV'] = 'test'

require 'fileutils'
# Remove tmp dir of dummy app before it's booted.
FileUtils.rm_rf "#{File.dirname(__FILE__)}/dummy/tmp"

require File.expand_path('../dummy/config/environment.rb', __FILE__)
require 'rails/generators'
require 'rails/test_help'

begin
  require 'minitest'
  TestCase = Minitest::Test
rescue LoadError
  require 'test/unit'
  puts 'minitest not found, falling back to test/unit'
  TestCase = Test::Unit::TestCase
end

require 'active_support/core_ext/kernel/reporting'
require 'pathname'

Rails.backtrace_cleaner.remove_silencers!
Something went wrong with that request. Please try again.