PageRenderTime 37ms CodeModel.GetById 13ms RepoModel.GetById 1ms app.codeStats 0ms

/vendor/gems/ruby-debug-0.10.2/test/test-output.rb

https://github.com/technicalpickles/flockup
Ruby | 26 lines | 17 code | 5 blank | 4 comment | 0 complexity | 15c3b7e91a80d585622a24e63a01d26a MD5 | raw file
Possible License(s): GPL-2.0
  1. #!/usr/bin/env ruby
  2. require 'test/unit'
  3. # begin require 'rubygems' rescue LoadError end
  4. # require 'ruby-debug'; Debugger.start
  5. # Test 'starting' annotation.
  6. class TestStartingAnnotate < Test::Unit::TestCase
  7. @@SRC_DIR = File.dirname(__FILE__) unless
  8. defined?(@@SRC_DIR)
  9. require File.join(@@SRC_DIR, 'helper')
  10. include TestHelper
  11. def test_basic
  12. testname='output'
  13. Dir.chdir(@@SRC_DIR) do
  14. script = File.join('data', testname + '.cmd')
  15. assert_equal(true,
  16. run_debugger(testname,
  17. "-A 3 --script #{script} -- output.rb",
  18. nil, nil, true))
  19. end
  20. end
  21. end