Sha256: fc9e733bae14778cd9571b6a9ff208b6ffe0b5e1f6f3d042abb103b64fab34f3

Contents?: true

Size: 1.36 KB

Versions: 3

Compression:

Stored size: 1.36 KB

Contents

#!/usr/bin/env ruby
require 'test/unit'
require 'trace'
require_relative 'fn_helper'

class TestRemap < Test::Unit::TestCase

  include FnTestHelper

  def test_remap
    skip "Not sure what this one was supposed to test - Investigate."
    cmds = [
            'step',
            'list',
            ]
    d = strarray_setup(cmds)
    d.start
    ##############################
    require 'date'
    ##############################
    d.stop
    out = [
           '-- ',
           "require 'date'",
           'METHOD TestRemap#require(path)',
           '-> ',
           'def require(path) # :doc:',
           ' 20    	  #   is.',
           ' 21    	  # * Otherwise, installed gems are searched for a file that matches.',
           " 22    	  #   If it's found in gem 'y', that gem is activated (added to the",
           ' 23    	  #   loadpath).',
           ' 24    	  #',
           ' 25    	  # The normal <tt>require</tt> functionality of returning false if',
           ' 26    	  # that file has already been loaded is preserved.',
           ' 27    	',
           ' 28  ->	  def require(path) # :doc:',
           ' 29    	    gem_original_require path',
           '-- ',
           'gem_original_require path',
           '<- ',
           'R=> false',
           'end',
           '-- ',
           'd.stop'
          ]
    compare_output(out, d, cmds)

  end
  
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
trepanning-1.93.35 test/functional/test-remap.rb
trepanning-1.93.32 test/functional/test-remap.rb
trepanning-0.1.6 test/functional/test-remap.rb