test/cuco_test.rb in cuco-0.0.7 vs test/cuco_test.rb in cuco-0.1.0

- old
+ new

@@ -1,31 +1,29 @@ require "test_helper" describe Cuco do - let(:cuco) { Controller.instance } - it "usage" do out, _err = capture_io do puts `bin/cuco -h` end assert_match(/Usage/, out) end it "options" do options = {opt: 1234} - cuco.init(options, []) + G.init options, [] - assert_equal options, cuco.options + assert_equal options, G.options end # it "coverage options debug" do # out, _err = capture_io do - # puts `bin/cuco -d` - # # Timeout::timeout(0.1) { puts `bin/cuco -d` } + # puts `bin/cuco -d` + # Timeout::timeout(0.1) { puts `bin/cuco -d` } # end # # assert_match(/:debug=>true/, out) - # assert_match(/script <.watchr>/, out) + # assert_match(/scriptname <.watchr>/, out) # assert_match(/pwd/, out) # end end