Permalink
Browse files

let Rake set the load path

  • Loading branch information...
tenderlove authored and Sven Fuchs committed Nov 15, 2010
1 parent 0ccb90b commit 5a2fe67f9b320d43c84116a44e72aa019dd097dd
View
@@ -3,6 +3,7 @@ require 'rake/testtask'
task :default => [:test]
Rake::TestTask.new(:test) do |t|
+ t.libs << 'test'
t.pattern = "#{File.dirname(__FILE__)}/test/all.rb"
t.verbose = true
end
@@ -1,4 +1,4 @@
-require File.expand_path('../../test_helper', __FILE__)
+require 'test_helper'
begin
require 'rubygems'
View
@@ -1,4 +1,4 @@
-require File.expand_path('../../test_helper', __FILE__)
+require 'test_helper'
class I18nCascadeApiTest < Test::Unit::TestCase
class Backend < I18n::Backend::Simple
View
@@ -1,4 +1,4 @@
-require File.expand_path('../../test_helper', __FILE__)
+require 'test_helper'
class I18nApiChainTest < Test::Unit::TestCase
def setup
@@ -1,4 +1,4 @@
-require File.expand_path('../../test_helper', __FILE__)
+require 'test_helper'
class I18nFallbacksApiTest < Test::Unit::TestCase
class Backend < I18n::Backend::Simple
@@ -1,4 +1,4 @@
-require File.expand_path('../../test_helper', __FILE__)
+require 'test_helper'
I18n::Tests.setup_rufus_tokyo
View
@@ -1,4 +1,4 @@
-require File.expand_path('../../test_helper', __FILE__)
+require 'test_helper'
class I18nMemoizeBackendWithSimpleApiTest < Test::Unit::TestCase
include I18n::Tests::Basics
@@ -1,4 +1,4 @@
-require File.expand_path('../../test_helper', __FILE__)
+require 'test_helper'
class I18nPluralizationApiTest < Test::Unit::TestCase
class Backend < I18n::Backend::Simple
View
@@ -1,4 +1,4 @@
-require File.expand_path('../../test_helper', __FILE__)
+require 'test_helper'
class I18nSimpleBackendApiTest < Test::Unit::TestCase
class Backend < I18n::Backend::Simple
@@ -1,4 +1,4 @@
-require File.expand_path('../../test_helper', __FILE__)
+require 'test_helper'
begin
require 'active_support'
@@ -1,4 +1,4 @@
-require File.expand_path('../../test_helper', __FILE__)
+require 'test_helper'
class I18nBackendCascadeTest < Test::Unit::TestCase
class Backend < I18n::Backend::Simple
@@ -1,4 +1,4 @@
-require File.expand_path('../../test_helper', __FILE__)
+require 'test_helper'
class I18nBackendChainTest < Test::Unit::TestCase
def setup
@@ -1,7 +1,7 @@
-require File.expand_path('../../test_helper', __FILE__)
+# :coding: utf-8
+require 'test_helper'
if defined?(Cldr)
- $:.unshift(File.expand_path(File.dirname(__FILE__) + '/../')); $:.uniq!
require 'test_helper'
require 'i18n/backend/cldr'
require 'date'
@@ -1,4 +1,4 @@
-require File.expand_path('../../test_helper', __FILE__)
+require 'test_helper'
class I18nBackendExceptionsTest < Test::Unit::TestCase
def setup
@@ -1,4 +1,4 @@
-require File.expand_path('../../test_helper', __FILE__)
+require 'test_helper'
class I18nBackendFallbacksTranslateTest < Test::Unit::TestCase
class Backend < I18n::Backend::Simple
@@ -1,4 +1,4 @@
-require File.expand_path('../../test_helper', __FILE__)
+require 'test_helper'
class InterpolationCompilerTest < Test::Unit::TestCase
Compiler = I18n::Backend::InterpolationCompiler::Compiler
@@ -1,4 +1,4 @@
-require File.expand_path('../../test_helper', __FILE__)
+require 'test_helper'
I18n::Tests.setup_rufus_tokyo
@@ -1,4 +1,4 @@
-require File.expand_path('../../test_helper', __FILE__)
+require 'test_helper'
require 'backend/simple_test'
@@ -1,4 +1,4 @@
-require File.expand_path('../../test_helper', __FILE__)
+require 'test_helper'
class I18nBackendMetadataTest < Test::Unit::TestCase
class Backend < I18n::Backend::Simple
@@ -1,4 +1,4 @@
-require File.expand_path('../../test_helper', __FILE__)
+require 'test_helper'
class I18nBackendPluralizationTest < Test::Unit::TestCase
class Backend < I18n::Backend::Simple
@@ -1,4 +1,4 @@
-require File.expand_path('../../test_helper', __FILE__)
+require 'test_helper'
class I18nBackendSimpleTest < Test::Unit::TestCase
def setup
@@ -1,4 +1,5 @@
-require File.expand_path('../../test_helper', __FILE__)
+# :coding: utf-8
+require 'test_helper'
class I18nBackendTransliterator < Test::Unit::TestCase
def setup
@@ -1,4 +1,4 @@
-require File.expand_path('../../test_helper', __FILE__)
+require 'test_helper'
require 'i18n/core_ext/hash'
class I18nCoreExtHashInterpolationTest < Test::Unit::TestCase
@@ -1,4 +1,4 @@
-require File.expand_path('../../../test_helper', __FILE__)
+require 'test_helper'
# thanks to Masao's String extensions these should work the same in
# Ruby 1.8 (patched) and Ruby 1.9 (native)
View
@@ -1,5 +1,5 @@
# encoding: utf-8
-require File.expand_path('../../test_helper', __FILE__)
+require 'test_helper'
require 'i18n/gettext/helpers'
include I18n::Gettext::Helpers
@@ -1,10 +1,10 @@
# encoding: utf-8
+require 'test_helper'
+
# apparently Ruby 1.9.1p129 has encoding problems with the gettext po parser
unless RUBY_VERSION == '1.9.1' && RUBY_PATCHLEVEL <= 129
- require File.expand_path('../../test_helper', __FILE__)
-
class I18nGettextBackendTest < Test::Unit::TestCase
include I18n::Gettext::Helpers
@@ -1,4 +1,4 @@
-require File.expand_path('../test_helper', __FILE__)
+require 'test_helper'
class I18nExceptionsTest < Test::Unit::TestCase
def test_invalid_locale_stores_locale
@@ -1,4 +1,4 @@
-require File.expand_path('../test_helper', __FILE__)
+require 'test_helper'
class I18nLoadPathTest < Test::Unit::TestCase
def setup
View
@@ -1,4 +1,4 @@
-require File.expand_path('../test_helper', __FILE__)
+require 'test_helper'
class I18nTest < Test::Unit::TestCase
def setup
@@ -1,4 +1,4 @@
-require File.expand_path('../../test_helper', __FILE__)
+require 'test_helper'
include I18n::Locale
@@ -1,5 +1,4 @@
# encoding: utf-8
-$:.unshift(File.expand_path(File.dirname(__FILE__) + '/../../')); $:.uniq!
require 'test_helper'
class I18nLocaleTagRfc4646ParserTest < Test::Unit::TestCase
@@ -1,5 +1,4 @@
# encoding: utf-8
-$:.unshift(File.expand_path(File.dirname(__FILE__) + '/../../')); $:.uniq!
require 'test_helper'
class I18nLocaleTagSimpleTest < Test::Unit::TestCase
View
@@ -1,4 +1,4 @@
-require File.expand_path('../test_setup', __FILE__)
+require 'test_setup'
I18n::Tests.parse_options!
View
@@ -15,7 +15,6 @@ def gem(gem_name, *version_requirements)
end
require 'bundler/setup'
-$:.unshift File.expand_path("../lib", File.dirname(__FILE__))
require 'i18n'
require 'mocha'
require 'test_declarative'

0 comments on commit 5a2fe67

Please sign in to comment.