Sha256: 69cf5f99929bf354a670679db050f407a9992d4114544ae1dbf985a2977eb743

Contents?: true

Size: 616 Bytes

Versions: 4

Compression:

Stored size: 616 Bytes

Contents

covers 'facets/binding/local_variables'

testcase Binding do

  a = 1
  b = 2
  x = "hello"

  bind = binding

  unless RUBY_VERSION > "1.9"

    unit :local_variables do
      bind.local_variables.assert.include? "bind"
      bind.local_variables.assert.include? "x"
      bind.local_variables.assert.include? "a"
      bind.local_variables.assert.include? "b"
    end

  else

    unit :local_variables do
      bind.local_variables.assert.include? :bind
      bind.local_variables.assert.include? :x
      bind.local_variables.assert.include? :a
      bind.local_variables.assert.include? :b
    end

  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
facets-2.9.1 test/core/binding/test_local_variables.rb
facets-2.9.0 test/core/binding/test_local_variables.rb
facets-2.9.0.pre.2 test/core/binding/test_local_variables.rb
facets-2.9.0.pre.1 test/core/binding/test_local_variables.rb