diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2020-05-29 16:31:25 +0200 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2020-06-05 07:32:42 +0900 |
commit | 8739bc449f7f560fe0c5addf7da2e73f4537b0cf (patch) | |
tree | e1af22169a8441edff2ff2eb6557a707b23fb4ac /test/rubygems | |
parent | e9c8066bd965634475f4273406fd0e0f6f5e5988 (diff) | |
download | ruby-8739bc449f7f560fe0c5addf7da2e73f4537b0cf.tar.gz |
[rubygems/rubygems] Only run optional validations in packaging contexts
https://github.com/rubygems/rubygems/commit/f4fe949dfa
Diffstat (limited to 'test/rubygems')
-rw-r--r-- | test/rubygems/test_gem_specification.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/rubygems/test_gem_specification.rb b/test/rubygems/test_gem_specification.rb index e223171aef..d0f11bfa02 100644 --- a/test/rubygems/test_gem_specification.rb +++ b/test/rubygems/test_gem_specification.rb @@ -3141,6 +3141,17 @@ http://spdx.org/licenses or 'Nonstandard' for a nonstandard license. WARNING end + def test_validate_license_in_a_non_packaging_context + util_setup_validate + + use_ui @ui do + @a1.licenses.clear + @a1.validate(false) + end + + assert_empty @ui.error + end + def test_removed_methods assert_equal Gem::Specification::REMOVED_METHODS, [:rubyforge_project=] end |