Sha256: bdcd207e4385f1e3e692444add0feb58a5dfaf74baf54dc14f315a51727f93aa
Contents?: true
Size: 818 Bytes
Versions: 5
Compression:
Stored size: 818 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
5 entries across 5 versions & 1 rubygems