diff options
Diffstat (limited to 'test/rubygems/test_gem_commands_unpack_command.rb')
-rw-r--r-- | test/rubygems/test_gem_commands_unpack_command.rb | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/rubygems/test_gem_commands_unpack_command.rb b/test/rubygems/test_gem_commands_unpack_command.rb index 61f671da7d..4fde83e524 100644 --- a/test/rubygems/test_gem_commands_unpack_command.rb +++ b/test/rubygems/test_gem_commands_unpack_command.rb @@ -134,6 +134,23 @@ class TestGemCommandsUnpackCommand < Gem::TestCase assert File.exist?(File.join(@tempdir, 'b-2.gemspec')) end + def test_execute_spec_target + util_make_gems + + @cmd.options[:args] = %w[a b] + @cmd.options[:target] = 'specs' + @cmd.options[:spec] = true + + use_ui @ui do + Dir.chdir @tempdir do + @cmd.execute + end + end + + assert File.exist?(File.join(@tempdir, 'specs/a-3.a.gemspec')) + assert File.exist?(File.join(@tempdir, 'specs/b-2.gemspec')) + end + def test_execute_sudo skip 'Cannot perform this test on windows (chmod)' if win_platform? |