2012-05-07 00:36:59 -04:00
|
|
|
ENV["RAILS_ENV"] ||= "test"
|
|
|
|
|
2009-02-03 21:25:37 -05:00
|
|
|
require 'stringio'
|
2012-12-28 14:17:37 -05:00
|
|
|
require 'active_support/testing/autorun'
|
2015-01-15 01:42:33 -05:00
|
|
|
require 'active_support/testing/stream'
|
2009-10-16 15:49:39 -04:00
|
|
|
require 'fileutils'
|
2009-02-03 21:25:37 -05:00
|
|
|
|
2007-03-01 18:29:56 -05:00
|
|
|
require 'active_support'
|
2009-09-25 23:54:41 -04:00
|
|
|
require 'action_controller'
|
2013-07-29 20:24:20 -04:00
|
|
|
require 'action_view'
|
2009-12-31 15:28:48 -05:00
|
|
|
require 'rails/all'
|
2009-09-25 23:54:41 -04:00
|
|
|
|
2010-09-23 13:13:07 -04:00
|
|
|
module TestApp
|
|
|
|
class Application < Rails::Application
|
|
|
|
config.root = File.dirname(__FILE__)
|
2013-12-10 10:04:07 -05:00
|
|
|
secrets.secret_key_base = 'b3c631c314c0bbca50c1b2843150fe33'
|
2010-09-23 13:13:07 -04:00
|
|
|
end
|
2009-10-19 22:22:23 -04:00
|
|
|
end
|
2014-01-13 06:24:06 -05:00
|
|
|
|
|
|
|
# Skips the current run on Rubinius using Minitest::Assertions#skip
|
|
|
|
def rubinius_skip(message = '')
|
|
|
|
skip message if RUBY_ENGINE == 'rbx'
|
|
|
|
end
|
|
|
|
# Skips the current run on JRuby using Minitest::Assertions#skip
|
|
|
|
def jruby_skip(message = '')
|
|
|
|
skip message if defined?(JRUBY_VERSION)
|
|
|
|
end
|
2014-07-15 16:56:27 -04:00
|
|
|
|
|
|
|
class ActiveSupport::TestCase
|
2015-01-15 01:42:33 -05:00
|
|
|
include ActiveSupport::Testing::Stream
|
2014-07-15 16:56:27 -04:00
|
|
|
end
|