Sha256: c5f9bab62df9ba725c035cfe8039e791ecae82c76b3211e1fcebfeb38649909e

Contents?: true

Size: 597 Bytes

Versions: 4

Compression:

Stored size: 597 Bytes

Contents

require 'rubygems'
require 'test/unit'

require 'action_controller'
require 'action_view'
require 'action_view/template'
require 'active_support'
require 'rails/railtie'

$:.unshift File.expand_path(File.dirname(__FILE__) + '/../lib')
require 'menu_builder'

Dir["#{File.dirname(__FILE__)}/support/*.rb"].each { |f| require f }

MenuBuilder::Routes = ActionDispatch::Routing::RouteSet.new
MenuBuilder::Routes.draw do
  match ':controller(/:action(/:id(.:format)))'
end

class ApplicationController < ActionController::Base; end
ActionController::Base.send :include, MenuBuilder::Routes.url_helpers

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
menu_builder-0.4.4 test/test_helper.rb
menu_builder-0.4.3 test/test_helper.rb
menu_builder-0.4.2 test/test_helper.rb
menu_builder-0.4.1 test/test_helper.rb