PageRenderTime 46ms CodeModel.GetById 20ms RepoModel.GetById 1ms app.codeStats 0ms

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

https://bitbucket.org/mediashelf/fedora-migrator
Ruby | 18 lines | 13 code | 5 blank | 0 comment | 0 complexity | b042e9557b8204f6185af33e78e1a15c MD5 | raw file
Possible License(s): GPL-3.0, GPL-2.0, IPL-1.0, AGPL-1.0, LGPL-3.0
  1. require 'facets/binding/local_variables'
  2. require 'test/unit'
  3. class TC_Binding_Local_Variables < Test::Unit::TestCase
  4. def setup
  5. a = 1
  6. b = 2
  7. x = "hello"
  8. @bind = binding
  9. end
  10. def test_local_variables
  11. assert_equal( ["a","b","x"], @bind.local_variables )
  12. end
  13. end