Sha256: 5a28aec212fc07da586f749a8bcb32f0647f0e8daf81ab937676eb87e0f1516c

Contents?: true

Size: 820 Bytes

Versions: 6

Compression:

Stored size: 820 Bytes

Contents

#!/usr/bin/env ruby
require 'rubygems'; require 'require_relative'
# require_relative '../../lib/trepanning'
require_relative 'helper'

# Test Running a program wiht an embedded space
class TestFileWithSpace < Test::Unit::TestCase
  include TestHelper

  def test_basic
    testname='file-with-space'
    common_setup(__FILE__)
    Dir.chdir(@srcdir) do 
      script = File.join(%W(.. data #{testname}.cmd))
#       filter = Proc.new{|got_lines, correct_lines|
#         [got_lines[0], correct_lines[0]].each do |s|
#           s.sub!(/tdebug.rb:\d+/, 'rdebug:999')
#         end
#       }
      assert_equal(true, 
                   run_debugger(testname,
                                "--script #{script} --nx --basename -- " +
                                "'../example/file with space.rb'"))
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rb8-trepanning-0.1.6 test/integration/test-file-with-space.rb
rb8-trepanning-0.1.5 test/integration/test-file-with-space.rb
rb8-trepanning-0.1.4 test/integration/test-file-with-space.rb
rb8-trepanning-0.1.3 test/integration/test-file-with-space.rb
rb8-trepanning-0.1.3-universal-ruby-1.9.2 test/integration/test-file-with-space.rb
rb8-trepanning-0.1.3-universal-ruby-1.8.7 test/integration/test-file-with-space.rb