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

Language Ruby Lines 19
MD5 Hash 01e2fe2e6225c383c86023d21fc08a82 Estimated Cost $283 (why?)
Repository https://bitbucket.org/mediashelf/fedora-migrator View Raw File
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
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
Back to Top