Permalink
Browse files

Fix tests to work with ruby 1.9

  • Loading branch information...
1 parent 497c832 commit c95622ee624952fa6064d5168a7b1d8314030834 @chipiga chipiga committed with Jul 5, 2010
Showing with 4 additions and 3 deletions.
  1. +1 −0 lib/support.rb
  2. +1 −1 test/extension_test.rb
  3. +1 −1 test/phone_country_test.rb
  4. +1 −1 test/phone_test.rb
View
@@ -1,3 +1,4 @@
+require 'yaml'
# support methods to remove dependencies on ActiveSupport
class String
def present?
View
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/test_helper'
+require File.expand_path(File.dirname(__FILE__) + '/test_helper')
class ExtensionTest < Test::Unit::TestCase
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/test_helper'
+require File.expand_path(File.dirname(__FILE__) + '/test_helper')
class PhoneCountryTest < Test::Unit::TestCase
def test_parse_germany_local
View
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/test_helper'
+require File.expand_path(File.dirname(__FILE__) + '/test_helper')
class PhoneTest < Test::Unit::TestCase

0 comments on commit c95622e

Please sign in to comment.