1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activeresource/test/abstract_unit.rb

28 lines
659 B
Ruby
Raw Normal View History

root = File.expand_path('../../..', __FILE__)
begin
require "#{root}/vendor/gems/environment"
rescue LoadError
$:.unshift("#{root}/activesupport/lib")
end
lib = File.expand_path("#{File.dirname(__FILE__)}/../lib")
$:.unshift(lib) unless $:.include?('lib') || $:.include?(lib)
2009-02-03 21:57:01 -05:00
require 'rubygems'
require 'test/unit'
2009-10-14 17:47:00 -04:00
require 'active_support'
require 'active_support/test_case'
require 'active_resource'
require 'active_model/test_case'
$:.unshift "#{File.dirname(__FILE__)}/../test"
require 'setter_trap'
require 'logger'
ActiveResource::Base.logger = Logger.new("#{File.dirname(__FILE__)}/debug.log")
begin
require 'ruby-debug'
rescue LoadError
end