Skip to content
Browse files

add activesupport and activemodel load paths to actionpack tests

  • Loading branch information...
1 parent f0fe555 commit cbefcc88b38f0ec3c885b450962623017f4cc64c @josh josh committed
Showing with 6 additions and 0 deletions.
  1. +6 −0 actionpack/test/abstract_unit.rb
View
6 actionpack/test/abstract_unit.rb
@@ -1,5 +1,11 @@
require File.expand_path('../../../load_paths', __FILE__)
+lib = File.expand_path("#{File.dirname(__FILE__)}/../lib")
+$:.unshift(lib) unless $:.include?('lib') || $:.include?(lib)
+
+activemodel_path = File.expand_path('../../../activemodel/lib', __FILE__)
+$:.unshift(activemodel_path) if File.directory?(activemodel_path) && !$:.include?(activemodel_path)
+
$:.unshift(File.dirname(__FILE__) + '/lib')
$:.unshift(File.dirname(__FILE__) + '/fixtures/helpers')
$:.unshift(File.dirname(__FILE__) + '/fixtures/alternate_helpers')

0 comments on commit cbefcc8

Please sign in to comment.
Something went wrong with that request. Please try again.