test/test_helper.rb in as_user-0.0.2 vs test/test_helper.rb in as_user-0.0.3

- old
+ new

@@ -1,15 +1,24 @@ # Configure Rails Environment ENV["RAILS_ENV"] = "test" require File.expand_path("../dummy/config/environment.rb", __FILE__) require "rails/test_help" +require "factory_girl" +FactoryGirl.find_definitions + Rails.backtrace_cleaner.remove_silencers! # 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 ActionController::TestCase + setup do + @routes = AsUser::Engine.routes + end end