Sha256: d22282a7f5e394fc6d534d650e66b4aa8e97eb7dc995272695a6a871c69ccbe9
Contents?: true
Size: 720 Bytes
Versions: 10
Compression:
Stored size: 720 Bytes
Contents
# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ | # |_|\___||___/\__| # # for lib/facets/binding/eval.rb # # Extracted Mon Sep 03 16:23:07 -0700 2007 # w/ Test Extraction Ratchet # require 'facets/binding/eval.rb' require 'test/unit' class TestBindingEval < Test::Unit::TestCase def setup x = "hello" @bind = binding; @this_line_no = __LINE__ end def test_eval assert_equal( "hello", @bind.eval("x") ) end def test_self assert_equal( self, @bind.self ) end def test_defined? assert( @bind.defined?("x") ) end def test_here assert_instance_of( Binding, here ) end end
Version data entries
10 entries across 10 versions & 1 rubygems