diff options
Diffstat (limited to 'test/rubygems/test_gem_specification.rb')
-rw-r--r-- | test/rubygems/test_gem_specification.rb | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/rubygems/test_gem_specification.rb b/test/rubygems/test_gem_specification.rb index 4c68545c3b..7ed502fa08 100644 --- a/test/rubygems/test_gem_specification.rb +++ b/test/rubygems/test_gem_specification.rb @@ -23,6 +23,7 @@ require_paths: - lib files: - lib/keyedlist.rb +autorequire: keyedlist author: Florian Gross email: flgr@ccan.de has_rdoc: true @@ -36,6 +37,7 @@ Gem::Specification.new do |s| s.summary = %q{A Hash which automatically computes keys.} s.files = [%q{lib/keyedlist.rb}] s.require_paths = [%q{lib}] + s.autorequire = %q{keyedlist} s.author = %q{Florian Gross} s.email = %q{flgr@ccan.de} end @@ -677,6 +679,7 @@ end def test_self_attribute_names expected_value = %w[ authors + autorequire bindir cert_chain date @@ -2691,6 +2694,21 @@ end end end + def test_validate_autorequire + util_setup_validate + + Dir.chdir @tempdir do + @a1.autorequire = 'code' + + use_ui @ui do + @a1.validate + end + + assert_match "#{w}: deprecated autorequire specified\n", + @ui.error, 'error' + end + end + def test_validate_dependencies util_setup_validate |