/vendor/gems/facets-2.4.5/test/core/binding/test_self.rb
Ruby | 18 lines | 13 code | 5 blank | 0 comment | 0 complexity | 7e849acced1065182f4545221eaf7575 MD5 | raw file
Possible License(s): GPL-3.0, GPL-2.0, IPL-1.0, AGPL-1.0, LGPL-3.0
- require 'facets/binding/self'
- require 'test/unit'
- class TC_Binding_Self < Test::Unit::TestCase
- def setup
- a = 1
- b = 2
- x = "hello"
- @bind = binding
- end
- def test_self
- assert_equal( self, @bind.self )
- end
- end