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

https://bitbucket.org/mediashelf/fedora-migrator · Ruby · 18 lines · 13 code · 5 blank · 0 comment · 0 complexity · 7e849acced1065182f4545221eaf7575 MD5 · raw file

  1. require 'facets/binding/self'
  2. require 'test/unit'
  3. class TC_Binding_Self < Test::Unit::TestCase
  4. def setup
  5. a = 1
  6. b = 2
  7. x = "hello"
  8. @bind = binding
  9. end
  10. def test_self
  11. assert_equal( self, @bind.self )
  12. end
  13. end