Sha256: 6fa454da864a9d7dd692361ff412f44eace41d5198fec7c3524487f859b3cebd
Contents?: true
Size: 790 Bytes
Versions: 4
Compression:
Stored size: 790 Bytes
Contents
require 'test/unit' require 'rubygems' begin require 'ruby-debug' rescue LoadError end 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
4 entries across 4 versions & 2 rubygems