test/unit/test-cmd-quit.rb in trepanning-0.0.9 vs test/unit/test-cmd-quit.rb in trepanning-0.1.0

- old
+ new

@@ -1,15 +1,14 @@ #!/usr/bin/env ruby -require 'test/unit' -require_relative '../../processor/mock' +require_relative './mock-helper' require_relative '../../processor/command/quit' class TestCommandQuit < Test::Unit::TestCase - + include MockUnitHelper def setup - @name = File.basename(__FILE__, '.rb').split(/-/)[2] - @dbg, @cmd = MockDebugger::setup(@name, false) + @name = File.basename(__FILE__, '.rb').split(/-/)[2] + common_setup(@name) end def test_basic pid = fork { @cmd.run([@name, '10']) } Process.wait @@ -19,8 +18,6 @@ assert_equal(0, $?.exitstatus) # FIXME: should test that finalization routines get run; # should test 'confirm' gets run; and should test that # 'unconditional' is handled correctly. end - - end