summaryrefslogtreecommitdiff
path: root/test/rubygems/test_gem.rb
diff options
context:
space:
mode:
authorbronzdoc <lsagastume1990@gmail.com>2020-04-26 11:55:37 -0600
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2020-05-08 14:13:29 +0900
commit7fb694fdb0fb56f8e2b3bf800c5f7117f0400f0d (patch)
tree1116f3a3420849ad33ac66e295ae1412a6eebcb6 /test/rubygems/test_gem.rb
parentb454b4e3107921348bc13f8c024239f82965ed4a (diff)
[rubygems/rubygems] Show gemspec location when a Gem::MissingSpecError is raised while trying to activate a gem
https://github.com/rubygems/rubygems/commit/4da54a8e8b
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3092
Diffstat (limited to 'test/rubygems/test_gem.rb')
-rw-r--r--test/rubygems/test_gem.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/rubygems/test_gem.rb b/test/rubygems/test_gem.rb
index 6b18bb9eb5..430c3a6eeb 100644
--- a/test/rubygems/test_gem.rb
+++ b/test/rubygems/test_gem.rb
@@ -1275,6 +1275,7 @@ class TestGem < Gem::TestCase
end
assert_match %r{Could not find 'b' }, e.message
+ assert_match %r{at: #{a.spec_file}}, e.message
end
def test_self_try_activate_missing_prerelease