PageRenderTime 59ms CodeModel.GetById 16ms RepoModel.GetById 1ms app.codeStats 0ms

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

https://github.com/technicalpickles/flockup
Ruby | 26 lines | 16 code | 5 blank | 5 comment | 0 complexity | 2a40660ec944760781ba53bd7b274f1e 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 info commands
  6. class TestInfo < 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. # Test commands in info.rb
  12. def test_basic
  13. testname='info'
  14. Dir.chdir(@@SRC_DIR) do
  15. script = File.join('data', testname + '.cmd')
  16. assert_equal(true,
  17. run_debugger(testname,
  18. "--script #{script} -- gcd.rb 3 5"))
  19. end
  20. end
  21. end