PageRenderTime 54ms CodeModel.GetById 30ms RepoModel.GetById 0ms app.codeStats 0ms

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

https://github.com/technicalpickles/flockup
Ruby | 25 lines | 16 code | 5 blank | 4 comment | 0 complexity | 5b726d00acb382aca020e73305df1f5a 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 enable and disable commands
  6. class TestEnable < 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='enable'
  13. Dir.chdir(@@SRC_DIR) do
  14. script = File.join('data', testname + '.cmd')
  15. assert_equal(true,
  16. run_debugger(testname,
  17. "--script #{script} -- gcd.rb 3 5"))
  18. end
  19. end
  20. end