PageRenderTime 27ms CodeModel.GetById 6ms RepoModel.GetById 0ms app.codeStats 0ms

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

https://bitbucket.org/mediashelf/fedora-migrator
Ruby | 16 lines | 11 code | 5 blank | 0 comment | 0 complexity | c8933894fffdbd0abcb57252734ff669 MD5 | raw file
Possible License(s): GPL-3.0, GPL-2.0, IPL-1.0, AGPL-1.0, LGPL-3.0
  1. require 'facets/binding/eval'
  2. require 'test/unit'
  3. class TC_Binding < Test::Unit::TestCase
  4. def setup
  5. x = "hello"
  6. @bind = binding
  7. end
  8. def test_eval
  9. assert_equal( "hello", @bind.eval("x") )
  10. end
  11. end