ruby-changes:57061
From: Nobuyoshi <ko1@a...>
Date: Fri, 16 Aug 2019 06:32:19 +0900 (JST)
Subject: [ruby-changes:57061] Nobuyoshi Nakada: 8045ebbf78 (master): Use locale directory for the tests
https://git.ruby-lang.org/ruby.git/commit/?id=8045ebbf78 From 8045ebbf780d4eb35154111cb0d177b5fc7c486b Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Sun, 2 Dec 2018 11:46:13 +0900 Subject: Use locale directory for the tests diff --git a/test/rdoc/test_rdoc_i18n_locale.rb b/test/rdoc/test_rdoc_i18n_locale.rb index c936a72..42d22ed 100644 --- a/test/rdoc/test_rdoc_i18n_locale.rb +++ b/test/rdoc/test_rdoc_i18n_locale.rb @@ -23,9 +23,9 @@ class TestRDocI18nLocale < RDoc::TestCase https://github.com/ruby/ruby/blob/trunk/test/rdoc/test_rdoc_i18n_locale.rb#L23 end def test_load_nonexistent_po - File.stub(:exist?, false) do - refute @locale.load('nonexsitent-locale') - end + locale = File.join(@locale_dir, 'nonexsitent-locale') + refute_file locale + refute @locale.load(locale) end def test_load_existent_po -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/