diff options
author | Daniel Niknam <mhmd.niknam@gmail.com> | 2021-08-08 19:40:05 +1000 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2021-08-31 19:06:14 +0900 |
commit | 34e073c0ca4a7bb0c7e07df883babeaafb03b438 (patch) | |
tree | 3594d001c815f4d79924af6f6643468982736517 /test | |
parent | 7d859489e181f00b9007e8e6f3d6f17a2b0e8827 (diff) |
[rubygems/rubygems] Reword the message
For errors that could happened while loading `rubygems/defaults/operating_system`
https://github.com/rubygems/rubygems/commit/6e1e2141f8
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/4789
Diffstat (limited to 'test')
-rw-r--r-- | test/rubygems/test_rubygems.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/rubygems/test_rubygems.rb b/test/rubygems/test_rubygems.rb index 9aa6c20cf5..f94481dc24 100644 --- a/test/rubygems/test_rubygems.rb +++ b/test/rubygems/test_rubygems.rb @@ -15,7 +15,11 @@ class GemTest < Gem::TestCase output = Gem::Util.popen(*ruby_with_rubygems_and_fake_operating_system_in_load_path(path), '-e', "'require \"rubygems\"'", {:err => [:child, :out]}).strip assert !$?.success? - assert_includes output, "This is not expected so please report this issue to your OS support and ask for help" + assert_includes output, "unterminated string meets end of file (SyntaxError)" + assert_includes output, "Loading the rubygems/defaults/operating_system.rb file caused an error. " \ + "This file is owned by your OS, not by rubygems upstream. " \ + "Please find out which OS package this file belongs to and follow the guidelines from your OS to report " \ + "the problem and ask for help." end private |