Permalink
Browse files

Fix path to test_helper.rb

  • Loading branch information...
1 parent d11e884 commit 0c240751e1ff69442d5d4bfbae5b193931349815 @jherdman jherdman committed with Aug 20, 2010
View
2 test/aliases_test.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/test_helper'
+require File.expand_path('test_helper', File.dirname(__FILE__))
class Student
extend ActiveModel::Naming
View
2 test/association_chain_test.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/test_helper'
+require File.expand_path('test_helper', File.dirname(__FILE__))
class Pet
extend ActiveModel::Naming
View
2 test/base_test.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/test_helper'
+require File.expand_path('test_helper', File.dirname(__FILE__))
class User
extend ActiveModel::Naming
View
2 test/belongs_to_test.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/test_helper'
+require File.expand_path('test_helper', File.dirname(__FILE__))
class Post
extend ActiveModel::Naming
View
4 test/class_methods_test.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/test_helper'
+require File.expand_path('test_helper', File.dirname(__FILE__))
class Book; end
class Folder; end
@@ -129,4 +129,4 @@ def test_url_helpers_are_recreated_just_once_when_belongs_to_is_called_with_mult
ensure
DeansController.send(:parents_symbols=, [:school])
end
-end
+end
View
2 test/customized_base_test.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/test_helper'
+require File.expand_path('test_helper', File.dirname(__FILE__))
class Car
extend ActiveModel::Naming
View
2 test/customized_belongs_to_test.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/test_helper'
+require File.expand_path('test_helper', File.dirname(__FILE__))
class GreatSchool
end
View
2 test/defaults_test.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/test_helper'
+require File.expand_path('test_helper', File.dirname(__FILE__))
class Malarz
def self.human_name; 'Painter'; end
View
2 test/nested_belongs_to_test.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/test_helper'
+require File.expand_path('test_helper', File.dirname(__FILE__))
class Country
end
View
2 test/optional_belongs_to_test.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/test_helper'
+require File.expand_path('test_helper', File.dirname(__FILE__))
class Brands; end
class Category; end
View
2 test/polymorphic_test.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/test_helper'
+require File.expand_path('test_helper', File.dirname(__FILE__))
class Factory; end
class Company; end
View
2 test/redirect_to_test.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/test_helper'
+require File.expand_path('test_helper', File.dirname(__FILE__))
class Machine;
def self.human_name; 'Machine'; end
View
2 test/singleton_test.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/test_helper'
+require File.expand_path('test_helper', File.dirname(__FILE__))
# This test file is instead to test the how controller flow and actions
# using a belongs_to association. This is done using mocks a la rspec.
View
2 test/url_helpers_test.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/test_helper'
+require File.expand_path('test_helper', File.dirname(__FILE__))
class Universe
extend ActiveModel::Naming

0 comments on commit 0c24075

Please sign in to comment.