Skip to content

Commit 81b58ac

Browse files
Merge pull request #3149 from faker-ruby/sb-3147-i18n-reload-fix
Remove minitest dependency on i18n reload test
2 parents 80253e9 + 7a6290c commit 81b58ac

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

test/test_i18n_reload.rb

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,24 @@ def test_faker_i18n
99
# and proper initialization of i18n.
1010
code = <<-RUBY
1111
require 'bundler/inline'
12+
require 'test/unit'
1213
1314
gemfile do
1415
source 'https://rubygems.org'
15-
gem 'minitest'
1616
gem 'i18n'
1717
end
1818
19-
require 'minitest/autorun'
2019
require 'i18n'
2120
22-
class TestI18nLoad < Minitest::Test
21+
class TestI18nLoad < Test::Unit::TestCase
2322
def test_faker_i18n
2423
I18n.available_locales = [:en]
25-
refute_predicate I18n.backend, :initialized?
24+
25+
refute I18n.backend.initialized?
26+
2627
I18n.translate('doesnt matter just triggering a lookup')
2728
28-
assert_predicate I18n.backend, :initialized?
29+
assert I18n.backend.initialized?
2930
3031
assert require File.expand_path('#{File.dirname(__FILE__)}/../lib/faker')
3132
@@ -37,6 +38,6 @@ def test_faker_i18n
3738
cmd = %( ruby -e "#{code}" )
3839
output, status = Open3.capture2e(cmd)
3940

40-
assert_equal 0, status, output
41+
assert_equal(0, status, output)
4142
end
4243
end

0 commit comments

Comments
 (0)