rubygems_generators/executable/templates/test/test_cli.rb.erb in newgem-1.2.2 vs rubygems_generators/executable/templates/test/test_cli.rb.erb in newgem-1.2.3
- old
+ new
@@ -1,11 +1,10 @@
require File.join(File.dirname(__FILE__), "test_helper.rb")
require '<%= bin_name %>/cli'
class Test<%= module_name %>Cli < Test::Unit::TestCase
def setup
- @stdout_io = StringIO.new
- <%= module_name %>::CLI.execute(@stdout_io, [])
+ <%= module_name %>::CLI.execute(@stdout_io = StringIO.new, [])
@stdout_io.rewind
@stdout = @stdout_io.read
end
def test_not_print_default_output
\ No newline at end of file