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

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

https://github.com/technicalpickles/flockup
Ruby | 25 lines | 16 code | 5 blank | 4 comment | 0 complexity | 79477e7a548c25e9660312f84ccb83a4 MD5 | raw file
Possible License(s): GPL-2.0
  1. #!/usr/bin/env ruby
  2. require 'test/unit'
  3. # require 'rubygems'
  4. # require 'ruby-debug'; Debugger.start(:post_mortem =>true)
  5. class TestSave < Test::Unit::TestCase
  6. @@SRC_DIR = File.dirname(__FILE__) unless
  7. defined?(@@SRC_DIR)
  8. require File.join(@@SRC_DIR, 'helper')
  9. include TestHelper
  10. # Test initial variables and setting/getting state.
  11. def test_basic
  12. testname='save'
  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