Sha256: 2e60322f4b2f43dd67f026f95086ed6be50bb9ca92526fc043d3928f0601f0ff

Contents?: true

Size: 1.42 KB

Versions: 1

Compression:

Stored size: 1.42 KB

Contents

require 'test/unit'
require 'rubygems'
require 'mocha'

ENV["RAILS_ENV"] = "test"

require 'active_support'
require 'action_controller'
require 'action_controller/test_case'
require 'action_controller/test_process'

I18n.load_path << File.join(File.dirname(__FILE__), 'fixtures', 'en.yml') 
I18n.reload!

# Load respond_to before defining ApplicationController
require File.dirname(__FILE__) + '/../lib/inherited_resources/respond_to.rb'

# Define ApplicationController
class ApplicationController < ActionController::Base; end

# Load InheritedResources::Base after defining ApplicationController
require File.dirname(__FILE__) + '/../lib/inherited_resources/base_helpers.rb'
require File.dirname(__FILE__) + '/../lib/inherited_resources/belongs_to.rb'
require File.dirname(__FILE__) + '/../lib/inherited_resources/belongs_to_helpers.rb'
require File.dirname(__FILE__) + '/../lib/inherited_resources/class_methods.rb'
require File.dirname(__FILE__) + '/../lib/inherited_resources/polymorphic_helpers.rb'
require File.dirname(__FILE__) + '/../lib/inherited_resources/singleton_helpers.rb'
require File.dirname(__FILE__) + '/../lib/inherited_resources/url_helpers.rb'
require File.dirname(__FILE__) + '/../lib/inherited_resources/base.rb'

# Define view_paths
ActionController::Base.view_paths = File.join(File.dirname(__FILE__), 'views')

# Define default routes
ActionController::Routing::Routes.draw do |map|
  map.connect ':controller/:action/:id'
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
josevalim-inherited_resources-0.1 test/test_helper.rb