mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
055857841a
Rails.env when running tests on localhost differs from travis ci which makes it harder to write tests that check env related things.
18 lines
337 B
Ruby
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
|