Sha256: 759e2ee004f88bf4fce98e937f6c21642098ce611e0817fc1b2de523c21c1b42
Contents?: true
Size: 819 Bytes
Versions: 1
Compression:
Stored size: 819 Bytes
Contents
require 'rubygems/test_case' require 'rubygems/commands/patch_command' class TestGemCommandsPatchCommand < Gem::TestCase def setup super @command = Gem::Commands::PatchCommand.new end def test_execute_no_gemfile @command.options[:args] = [] e = assert_raises Gem::CommandLineError do use_ui @ui do @command.execute end end assert_match 'Please specify a gem file on the command line (e.g. gem patch foo-0.1.0.gem PATCH [PATCH ...])', e.message end def test_execute_no_patch @command.options[:args] = ['Gemfile.gem'] e = assert_raises Gem::CommandLineError do use_ui @ui do @command.execute end end assert_match 'Please specify patches to apply (e.g. gem patch foo-0.1.0.gem foo.patch bar.patch ...)', e.message end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gem-patch-0.1.6 | test/rubygems/test_gem_commands_patch_command.rb |