/vendor/gems/facets-2.4.5/test/core/kernel/test_here.rb
Ruby | 15 lines | 11 code | 4 blank | 0 comment | 0 complexity | 3d536408fbdd3ace81356bed8cfd8390 MD5 | raw file
Possible License(s): GPL-3.0, GPL-2.0, IPL-1.0, AGPL-1.0, LGPL-3.0
- require 'facets/kernel/here.rb'
- require 'test/unit'
- class TC_Binding_Here < Test::Unit::TestCase
- def setup
- x = "hello"
- @bind = binding; @this_line_no = __LINE__
- end
- def test_here
- assert_instance_of( Binding, here )
- end
- end