Sha256: 6daf644fcfdccf1026e0711bbf3992cf6d5e98563bfe9d6ca06a6177c59a7182

Contents?: true

Size: 382 Bytes

Versions: 6

Compression:

Stored size: 382 Bytes

Contents

require File.join(File.dirname(__FILE__), "test_helper.rb")
require '<%= bin_name %>/cli'

class Test<%= module_name %>Cli < Test::Unit::TestCase
  def setup
    <%= module_name %>::CLI.execute(@stdout_io = StringIO.new, [])
    @stdout_io.rewind
    @stdout = @stdout_io.read
  end
  
  def test_print_default_output
    assert_match(/To update this executable/, @stdout)
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
newgem-1.5.3 rubygems_generators/executable/templates/test/test_cli.rb.erb
newgem-1.5.0 rubygems_generators/executable/templates/test/test_cli.rb.erb
newgem-1.5.1 rubygems_generators/executable/templates/test/test_cli.rb.erb
newgem-1.5.2 rubygems_generators/executable/templates/test/test_cli.rb.erb
newgem-1.4.0 rubygems_generators/executable/templates/test/test_cli.rb.erb
newgem-1.4.1 rubygems_generators/executable/templates/test/test_cli.rb.erb