Sha256: c16fae7e0349dd22025a737c6f33aa69fe4c0e043766908d45a9fd5a4596e957

Contents?: true

Size: 603 Bytes

Versions: 2

Compression:

Stored size: 603 Bytes

Contents

#  _____         _
# |_   _|__  ___| |_
#   | |/ _ \/ __| __|
#   | |  __/\__ \ |_
#   |_|\___||___/\__|
#
# for lib/facet/binding/local_variables.rb
#
# Extracted Mon Mar 13 13:24:07 UTC 2006
# Unit Tools Reap Test Extractor
#

require 'facet/binding/local_variables.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 = 25
    end

    def test_local_variables
      assert_equal( ["a","b","x"], @bind.local_variables )
    end

  end


Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
facets-1.1.0 test/lib/facet/binding/test_local_variables.rb
facets-1.2.0 test/lib/facet/binding/test_local_variables.rb