/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

  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