/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
- 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