1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/railties/test/abstract_unit.rb
Piotr Sarnacki 055857841a Ensure that Rails.env is equal to "test" by default when running tests.
Rails.env when running tests on localhost differs from travis ci
which makes it harder to write tests that check env related things.
2012-05-06 21:36:59 -07:00

18 lines
337 B
Ruby

ENV["RAILS_ENV"] ||= "test"
require File.expand_path("../../../load_paths", __FILE__)
require 'stringio'
require 'minitest/autorun'
require 'fileutils'
require 'active_support'
require 'action_controller'
require 'rails/all'
module TestApp
class Application < Rails::Application
config.root = File.dirname(__FILE__)
end
end