Sha256: 929f53a18a5d8d7dc23570e449343d4592dbdcc2e9f43a28c3e879ffce241908
Contents?: true
Size: 794 Bytes
Versions: 6
Compression:
Stored size: 794 Bytes
Contents
require 'test/unit' unless defined?(RUNNING_RAILS) MARKABY_ROOT = File.join(File.dirname(__FILE__), "..", "..", "..") rails_root = File.join(MARKABY_ROOT, "..", "..", "..") RAILS_BOOT_FILE = File.join(rails_root, "config", "boot.rb") RUNNING_RAILS = File.exists?(RAILS_BOOT_FILE) ? true : false end if RUNNING_RAILS ENV["RAILS_ENV"] ||= "test" require RAILS_BOOT_FILE Rails::Initializer.run require 'action_controller/test_process' $:.unshift MARKABY_ROOT require 'init' ActionController::Routing::Routes.draw do |map| map.new_user "/users/new", :controller => "users", :action => "new" # default routes map.connect ':controller/:action/:id.:format' map.connect ':controller/:action/:id' end else warn "Skipping rails specific tests" end
Version data entries
6 entries across 6 versions & 2 rubygems