PageRenderTime 31ms CodeModel.GetById 1ms RepoModel.GetById 0ms app.codeStats 0ms

/vendor/gems/facets-2.4.5/test/core/kernel/test_here.rb

https://bitbucket.org/mediashelf/fedora-migrator
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
  1. require 'facets/kernel/here.rb'
  2. require 'test/unit'
  3. class TC_Binding_Here < Test::Unit::TestCase
  4. def setup
  5. x = "hello"
  6. @bind = binding; @this_line_no = __LINE__
  7. end
  8. def test_here
  9. assert_instance_of( Binding, here )
  10. end
  11. end