Sha256: 1688986bd7667ee8ee701a1010e1a92ed37877993b568d20babbe7b0fedacb54
Contents?: true
Size: 477 Bytes
Versions: 1
Compression:
Stored size: 477 Bytes
Contents
require 'minitest/autorun' require 'rubygems/command_manager' require 'rubygems/test_case' require_relative '../lib/rubygems/commands/<%= name %>_command' class <%= klass %>CommandTest < Gem::TestCase def setup super @cmd = Gem::Commands::<%= klass %>Command.new end def test_execute @cmd.handle_options %w[here goes you params] ui = Gem::MockGemUi.new use_ui(ui) do @cmd.execute end assert_equal "It works!\n", ui.output end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rubygems_plugin_generator-0.2.0 | lib/rubygems_plugin_generator/templates/test.tt |