fedora-migrator /vendor/gems/facets-2.4.5/test/core/binding/test_local_variables.rb

Language Ruby Lines 19
MD5 Hash b042e9557b8204f6185af33e78e1a15c Estimated Cost $283 (why?)
Repository https://bitbucket.org/mediashelf/fedora-migrator View Raw File
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
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

  def test_local_variables
    assert_equal( ["a","b","x"], @bind.local_variables )
  end

end
Back to Top