File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff 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
4243end
You can’t perform that action at this time.
0 commit comments