PageRenderTime 121ms CodeModel.GetById 80ms app.highlight 3ms RepoModel.GetById 37ms app.codeStats 0ms

/vendor/gems/facets-2.4.5/test/core/binding/test_defined.rb

https://bitbucket.org/mediashelf/fedora-migrator
Ruby | 18 lines | 13 code | 5 blank | 0 comment | 0 complexity | 01e2fe2e6225c383c86023d21fc08a82 MD5 | raw file
 1require 'facets/binding/defined'
 2require 'test/unit'
 3
 4class TC_Binding_Defined < Test::Unit::TestCase
 5
 6  def setup
 7    a = 1
 8    b = 2
 9    x = "hello"
10    @bind = binding
11  end
12
13  def test_defined?
14    assert( @bind.defined?("x") )
15  end
16
17end
18