Sha256: dea42e15ad2cb13ca2b418c3ad186d65e1344e5852a75ca129fda721eba83a41

Contents?: true

Size: 857 Bytes

Versions: 9

Compression:

Stored size: 857 Bytes

Contents

require 'rubygems'

begin
  gem "test-unit"
rescue LoadError
end

begin
  gem "ruby-debug"
  require 'ruby-debug'
rescue LoadError
end

require 'test/unit'
require 'mocha'

ENV["RAILS_ENV"] = "test"
RAILS_ROOT = "anywhere"

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

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

class ApplicationController < ActionController::Base; end

# Add IR to load path and load the main file
ActiveSupport::Dependencies.load_paths << File.expand_path(File.dirname(__FILE__) + '/../lib')
require_dependency 'inherited_resources'

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

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

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
inherited_resources-1.0.2 test/test_helper.rb
inherited_resources-1.0.1 test/test_helper.rb
inherited_resources-1.0.0 test/test_helper.rb
inherited_resources-1.0.pre test/test_helper.rb
inherited_resources-0.9.5 test/test_helper.rb
inherited_resources-0.9.4 test/test_helper.rb
inherited_resources-0.9.3 test/test_helper.rb
inherited_resources-0.9.2 test/test_helper.rb
base_rails_app-0.0.1 lib/vendor/plugins/inherited_resources/test/test_helper.rb