/vendor/gems/facets-2.4.5/test/core/binding/test_eval.rb
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
- require 'facets/binding/eval'
- require 'test/unit'
- class TC_Binding < Test::Unit::TestCase
- def setup
- x = "hello"
- @bind = binding
- end
- def test_eval
- assert_equal( "hello", @bind.eval("x") )
- end
- end