aboutsummaryrefslogblamecommitdiffstats
path: root/activeresource/test/abstract_unit.rb
blob: 3d684ff3479f63bf1306cec4be28648cd8835c93 (plain) (tree)
1
2
3
4
5
6
7
8
9
10




                                             

   


                                                             
                  
                   
                        
                                  
                         
                                
 

                                              
 
                

                                                                               

                      
                
   
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)

require 'rubygems'
require 'test/unit'
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