Sha256: 4a28e47509bd833ae009c30df2b42662725d0502fd079e2cf6845af96dba08c7

Contents?: true

Size: 355 Bytes

Versions: 68

Compression:

Stored size: 355 Bytes

Contents

require 'test_helper'

class BindingTest < Test::Unit::TestCase
  class Demo
    def initialize(n)
      @secret = n
    end
    def get_binding
      return binding()
    end
  end

  context "Binding" do
    context "#eval" do
      should "conform to doc" do
        assert_equal 99, Demo.new(99).get_binding.eval("@secret")
      end
    end
  end
end

Version data entries

68 entries across 68 versions & 2 rubygems

Version Path
backports-2.0.2 test/binding_test.rb
backports-2.0.1 test/binding_test.rb
backports-2.0.0 test/binding_test.rb
backports-1.18.2 test/binding_test.rb
backports-1.18.1 test/binding_test.rb
backports-1.18.0 test/binding_test.rb
backports-1.17.1 test/binding_test.rb
backports-1.17.0 test/binding_test.rb
backports-1.16.7 test/binding_test.rb
backports-1.16.6 test/binding_test.rb
backports-1.16.5 test/binding_test.rb
backports-1.16.4 test/binding_test.rb
backports-1.16.3 test/binding_test.rb
backports-1.16.2 test/binding_test.rb
backports-1.16.1 test/binding_test.rb
backports-1.15.0 test/binding_test.rb
backports-1.14.1 test/binding_test.rb
backports-1.14.0 test/binding_test.rb
backports-1.13.3 test/binding_test.rb
backports-1.13.2 test/binding_test.rb