Sha256: 92d5443a8f00da47d9e7c8df786dc0dabbcd93fcb278c364598e8f832057b541

Contents?: true

Size: 244 Bytes

Versions: 16

Compression:

Stored size: 244 Bytes

Contents

require 'facets/binding/defined'
require 'test/unit'

class TC_Binding_Defined < Test::Unit::TestCase

  def setup
    a = 1
    b = 2
    x = "hello"
    @bind = binding
  end

  def test_defined?
    assert( @bind.defined?("x") )
  end

end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
facets-2.8.4 test/core/binding/test_defined.rb
facets-2.8.3 test/core/binding/test_defined.rb
facets-2.8.2 test/core/binding/test_defined.rb
facets-2.8.1 test/core/binding/test_defined.rb
facets-2.8.0 test/core/binding/test_defined.rb
facets-2.7.0 test/core/binding/test_defined.rb
facets-2.6.0 test/core/binding/test_defined.rb
facets-2.4.0 test/binding/test_defined.rb
facets-2.4.1 test/binding/test_defined.rb
facets-2.4.3 test/core/binding/test_defined.rb
facets-2.4.2 test/core/binding/test_defined.rb
facets-2.4.4 test/core/binding/test_defined.rb
facets-2.5.0 test/core/binding/test_defined.rb
facets-2.4.5 test/core/binding/test_defined.rb
facets-2.5.1 test/core/binding/test_defined.rb
facets-2.5.2 test/core/binding/test_defined.rb