test/test_cli.rb in milkode-0.9.9 vs test/test_cli.rb in milkode-0.9.9.9

- old
+ new

@@ -9,11 +9,11 @@ require 'test_helper' require 'milkode_test_work' class TestCLI < Test::Unit::TestCase def setup - $stdout = StringIO.new + $stdout = @stringio = StringIO.new @first_default_dir = Dbdir.default_dir @work = MilkodeTestWork.new({:default_db => true}) @work.add_package "db1", @work.expand_path("../data/a_project") @orig_stdout = $stdout end @@ -63,11 +63,13 @@ end def test_fav command("fav") command("fav a_not_found_package_xxxxxxx") + @stringio.string = "" # command("fav package") # command("fav -d package") + assert_equal "", command("fav --sync-yaml") end def test_help_with_h_option commands = ["init", "add", "update", "remove", "list", "pwd", "cleanup", "rebuild", "dump", "dir", "setdb", "mcd", "info", "ignore", "web", "fav"] commands.each do |cmd|