OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
openproject/lib/plugins/verification/test/test_helper.rb

20 lines
475 B

require 'rubygems'
require 'test/unit'
require 'active_support'
require 'action_controller'
require 'mocha/setup'
require File.dirname(__FILE__) + '/../lib/action_controller/verification'
SharedTestRoutes = ActionDispatch::Routing::RouteSet.new
SharedTestRoutes.draw do
match ":controller(/:action(/:id))"
end
ActionController::Base.send :include, SharedTestRoutes.url_helpers
module ActionController
class TestCase
setup { @routes = SharedTestRoutes }
end
end