test/test_helper.rb in inherited_resources-1.2.2 vs test/test_helper.rb in inherited_resources-1.3.0

- old
+ new

@@ -10,11 +10,10 @@ RAILS_ROOT = "anywhere" require "active_support" require "active_model" require "action_controller" -require "rails/railtie" I18n.load_path << File.join(File.dirname(__FILE__), 'locales', 'en.yml') I18n.reload! class ApplicationController < ActionController::Base; end @@ -28,12 +27,17 @@ InheritedResources::Routes = ActionDispatch::Routing::RouteSet.new InheritedResources::Routes.draw do match ':controller(/:action(/:id))' match ':controller(/:action)' resources 'posts' + root :to => 'posts#index' end ActionController::Base.send :include, InheritedResources::Routes.url_helpers + +# Add app base to load path +$:.unshift File.expand_path(File.dirname(__FILE__) + '/../app/controllers') +require 'inherited_resources/base' class ActiveSupport::TestCase setup do @routes = InheritedResources::Routes end