1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activemodel/test/cases/helper.rb
Joshua Peek 7ee5843c3c Fully expand relative rails framework paths and make sure we aren't
adding any to the load path more than once.
2009-12-16 11:56:51 -06:00

23 lines
501 B
Ruby

begin
require File.expand_path('../../../../vendor/gems/environment', __FILE__)
rescue LoadError
end
lib = File.expand_path('../../../lib', __FILE__)
$:.unshift(lib) unless $:.include?('lib') || $:.include?(lib)
require 'config'
require 'active_model'
require 'active_model/test_case'
# Show backtraces for deprecated behavior for quicker cleanup.
ActiveSupport::Deprecation.debug = true
require 'rubygems'
require 'test/unit'
begin
require 'ruby-debug'
Debugger.start
rescue LoadError
end