Sha256: 9f3cb165174bd5e7ffe6a27e4972db084fde94a21e9db25c626277e5603a7ed3

Contents?: true

Size: 1.03 KB

Versions: 9

Compression:

Stored size: 1.03 KB

Contents

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

ENV["RAILS_ENV"] = "test"

# Used to tests Rails 2.2.2 version
# gem 'activesupport', '2.2.2'
# gem 'actionpack', '2.2.2'
# TEST_CLASS = Test::Unit::TestCase

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

TEST_CLASS = ActionController::TestCase

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.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

9 entries across 9 versions & 1 rubygems

Version Path
josevalim-inherited_resources-0.2.0 test/test_helper.rb
josevalim-inherited_resources-0.2.1 test/test_helper.rb
josevalim-inherited_resources-0.2.2 test/test_helper.rb
josevalim-inherited_resources-0.3 test/test_helper.rb
josevalim-inherited_resources-0.4.1 test/test_helper.rb
josevalim-inherited_resources-0.4.2 test/test_helper.rb
josevalim-inherited_resources-0.4.3 test/test_helper.rb
josevalim-inherited_resources-0.4.4 test/test_helper.rb
josevalim-inherited_resources-0.4 test/test_helper.rb