Skip to content

Commit

Permalink
let Rake set the load path
Browse files Browse the repository at this point in the history
  • Loading branch information
tenderlove authored and Sven Fuchs committed Nov 17, 2010
1 parent 0ccb90b commit 5a2fe67
Show file tree
Hide file tree
Showing 34 changed files with 34 additions and 35 deletions.
1 change: 1 addition & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion test/api/all_features_test.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.expand_path('../../test_helper', __FILE__)
require 'test_helper'

begin
require 'rubygems'
Expand Down
2 changes: 1 addition & 1 deletion test/api/cascade_test.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.expand_path('../../test_helper', __FILE__)
require 'test_helper'

class I18nCascadeApiTest < Test::Unit::TestCase
class Backend < I18n::Backend::Simple
Expand Down
2 changes: 1 addition & 1 deletion test/api/chain_test.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.expand_path('../../test_helper', __FILE__)
require 'test_helper'

class I18nApiChainTest < Test::Unit::TestCase
def setup
Expand Down
2 changes: 1 addition & 1 deletion test/api/fallbacks_test.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.expand_path('../../test_helper', __FILE__)
require 'test_helper'

class I18nFallbacksApiTest < Test::Unit::TestCase
class Backend < I18n::Backend::Simple
Expand Down
2 changes: 1 addition & 1 deletion test/api/key_value_test.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.expand_path('../../test_helper', __FILE__)
require 'test_helper'

I18n::Tests.setup_rufus_tokyo

Expand Down
2 changes: 1 addition & 1 deletion test/api/memoize_test.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.expand_path('../../test_helper', __FILE__)
require 'test_helper'

class I18nMemoizeBackendWithSimpleApiTest < Test::Unit::TestCase
include I18n::Tests::Basics
Expand Down
2 changes: 1 addition & 1 deletion test/api/pluralization_test.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.expand_path('../../test_helper', __FILE__)
require 'test_helper'

class I18nPluralizationApiTest < Test::Unit::TestCase
class Backend < I18n::Backend::Simple
Expand Down
2 changes: 1 addition & 1 deletion test/api/simple_test.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.expand_path('../../test_helper', __FILE__)
require 'test_helper'

class I18nSimpleBackendApiTest < Test::Unit::TestCase
class Backend < I18n::Backend::Simple
Expand Down
2 changes: 1 addition & 1 deletion test/backend/cache_test.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.expand_path('../../test_helper', __FILE__)
require 'test_helper'

begin
require 'active_support'
Expand Down
2 changes: 1 addition & 1 deletion test/backend/cascade_test.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.expand_path('../../test_helper', __FILE__)
require 'test_helper'

class I18nBackendCascadeTest < Test::Unit::TestCase
class Backend < I18n::Backend::Simple
Expand Down
2 changes: 1 addition & 1 deletion test/backend/chain_test.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.expand_path('../../test_helper', __FILE__)
require 'test_helper'

class I18nBackendChainTest < Test::Unit::TestCase
def setup
Expand Down
4 changes: 2 additions & 2 deletions test/backend/cldr_test.rb
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
2 changes: 1 addition & 1 deletion test/backend/exceptions_test.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.expand_path('../../test_helper', __FILE__)
require 'test_helper'

class I18nBackendExceptionsTest < Test::Unit::TestCase
def setup
Expand Down
2 changes: 1 addition & 1 deletion test/backend/fallbacks_test.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.expand_path('../../test_helper', __FILE__)
require 'test_helper'

class I18nBackendFallbacksTranslateTest < Test::Unit::TestCase
class Backend < I18n::Backend::Simple
Expand Down
2 changes: 1 addition & 1 deletion test/backend/interpolation_compiler_test.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.expand_path('../../test_helper', __FILE__)
require 'test_helper'

class InterpolationCompilerTest < Test::Unit::TestCase
Compiler = I18n::Backend::InterpolationCompiler::Compiler
Expand Down
2 changes: 1 addition & 1 deletion test/backend/key_value_test.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.expand_path('../../test_helper', __FILE__)
require 'test_helper'

I18n::Tests.setup_rufus_tokyo

Expand Down
2 changes: 1 addition & 1 deletion test/backend/memoize_test.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.expand_path('../../test_helper', __FILE__)
require 'test_helper'

require 'backend/simple_test'

Expand Down
2 changes: 1 addition & 1 deletion test/backend/metadata_test.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.expand_path('../../test_helper', __FILE__)
require 'test_helper'

class I18nBackendMetadataTest < Test::Unit::TestCase
class Backend < I18n::Backend::Simple
Expand Down
2 changes: 1 addition & 1 deletion test/backend/pluralization_test.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.expand_path('../../test_helper', __FILE__)
require 'test_helper'

class I18nBackendPluralizationTest < Test::Unit::TestCase
class Backend < I18n::Backend::Simple
Expand Down
2 changes: 1 addition & 1 deletion test/backend/simple_test.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.expand_path('../../test_helper', __FILE__)
require 'test_helper'

class I18nBackendSimpleTest < Test::Unit::TestCase
def setup
Expand Down
3 changes: 2 additions & 1 deletion test/backend/transliterator_test.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
require File.expand_path('../../test_helper', __FILE__)
# :coding: utf-8
require 'test_helper'

class I18nBackendTransliterator < Test::Unit::TestCase
def setup
Expand Down
2 changes: 1 addition & 1 deletion test/core_ext/hash_test.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.expand_path('../../test_helper', __FILE__)
require 'test_helper'
require 'i18n/core_ext/hash'

class I18nCoreExtHashInterpolationTest < Test::Unit::TestCase
Expand Down
2 changes: 1 addition & 1 deletion test/core_ext/string/interpolate_test.rb
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
2 changes: 1 addition & 1 deletion test/gettext/api_test.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions test/gettext/backend_test.rb
Original file line number Diff line number Diff line change
@@ -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

Expand Down
2 changes: 1 addition & 1 deletion test/i18n_exceptions_test.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion test/i18n_load_path_test.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.expand_path('../test_helper', __FILE__)
require 'test_helper'

class I18nLoadPathTest < Test::Unit::TestCase
def setup
Expand Down
2 changes: 1 addition & 1 deletion test/i18n_test.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.expand_path('../test_helper', __FILE__)
require 'test_helper'

class I18nTest < Test::Unit::TestCase
def setup
Expand Down
2 changes: 1 addition & 1 deletion test/locale/fallbacks_test.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.expand_path('../../test_helper', __FILE__)
require 'test_helper'

include I18n::Locale

Expand Down
1 change: 0 additions & 1 deletion test/locale/tag/rfc4646_test.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# encoding: utf-8
$:.unshift(File.expand_path(File.dirname(__FILE__) + '/../../')); $:.uniq!
require 'test_helper'

class I18nLocaleTagRfc4646ParserTest < Test::Unit::TestCase
Expand Down
1 change: 0 additions & 1 deletion test/locale/tag/simple_test.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# encoding: utf-8
$:.unshift(File.expand_path(File.dirname(__FILE__) + '/../../')); $:.uniq!
require 'test_helper'

class I18nLocaleTagSimpleTest < Test::Unit::TestCase
Expand Down
2 changes: 1 addition & 1 deletion test/test_helper.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.expand_path('../test_setup', __FILE__)
require 'test_setup'

I18n::Tests.parse_options!

Expand Down
1 change: 0 additions & 1 deletion test/test_setup.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 5a2fe67

Please sign in to comment.