Sha256: 64d24bcfccc5ce412e672ffd48ce46d51fc3b95978b7daa7fa0a01540018dc38
Contents?: true
Size: 890 Bytes
Versions: 1
Compression:
Stored size: 890 Bytes
Contents
# Configure Rails Environment ENV["RAILS_ENV"] = "test" require File.expand_path("../dummy/config/environment.rb", __FILE__) require "rails/test_help" Rails.backtrace_cleaner.remove_silencers! require 'minitest/reporters' MiniTest::Reporters.use! # Load support files Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f } # Load fixtures from the engine if ActiveSupport::TestCase.method_defined?(:fixture_path=) ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__) end class ActiveSupport::TestCase fixtures :all end class ActionController::TestCase #Overrides get, post etc. to use a default :use_route of :disclaimer def process(action, parameters, session = nil, flash = nil, http_method = 'GET') parameters ||= Hash.new parameters[:use_route] = :disclaimer unless parameters[:use_route] super end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
disclaimer-0.0.1 | test/test_helper.rb |