Sha256: c3ed49bf8941d96d50bdb90d01b5ac97a8de4c6dd3bb720b2b735b3a6fc0d963
Contents?: true
Size: 448 Bytes
Versions: 9
Compression:
Stored size: 448 Bytes
Contents
require 'facets/binding/local_variables' require 'test/unit' class TC_Binding_Local_Variables < Test::Unit::TestCase def setup a = 1 b = 2 x = "hello" @bind = binding end unless RUBY_VERSION > "1.9" def test_local_variables assert_equal( ["a","b","x"], @bind.local_variables ) end else def test_local_variables assert_equal( [:a,:b,:x], @bind.local_variables ) end end end
Version data entries
9 entries across 9 versions & 1 rubygems