From aa449141b427bc5cc32650d6f5c9813e71b7d237 Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Mon, 24 May 2010 16:18:29 -0700 Subject: [PATCH] Work around strange Ruby 1.9 autoload issue by using absolute load paths for tests (for Active Model too) --- activemodel/test/test_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activemodel/test/test_helper.rb b/activemodel/test/test_helper.rb index 5b5678e42d..c4c1d11df1 100644 --- a/activemodel/test/test_helper.rb +++ b/activemodel/test/test_helper.rb @@ -7,7 +7,7 @@ require 'active_model' require 'active_model/state_machine' -$:.unshift File.dirname(__FILE__) + "/../../activesupport/lib" +$:.unshift File.expand_path('../../../activesupport/lib', __FILE__) require 'active_support' require 'active_support/test_case' -- GitLab