Sha256: d79721b2c63cd9d8fa99cc386ddf6ebf9e8be0e43d0f04643f1597cea0767825

Contents?: true

Size: 866 Bytes

Versions: 1

Compression:

Stored size: 866 Bytes

Contents

#  _____         _
# |_   _|__  ___| |_
#   | |/ _ \/ __| __|
#   | |  __/\__ \ |_
#   |_|\___||___/\__|
#
# for lib/facet/binding/__LINE__.rb
#
# Extracted Wed Jan 25 11:25:39 EST 2006
# Unit Tools Reap Test Extractor
#

require 'facet/binding/__LINE__.rb'


  require 'test/unit'

  class TCBinding < Test::Unit::TestCase

    def setup
      a = 1
      b = 2
      x = "hello"
      # the line number must be updated if it moves
      @bind = binding; @this_line_no = __LINE__
      @this_file_name = File.basename( __FILE__ ) # why does it equal basename only?
    end

    def test___LINE__
      assert_equal( @this_line_no, @bind.__LINE__ )
    end

    def test___FILE__
      assert_equal( @this_file_name, File.basename( @bind.__FILE__ ) )
    end

    def test___DIR__
      assert_equal( File.dirname( @bind.__FILE__ ), @bind.__DIR__ )
    end

  end


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
facets-1.0.3 packages/core/test/lib/facet/binding/test___LINE__.rb