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-1.13.1 test/binding_test.rb
backports-1.13.0 test/binding_test.rb
backports-1.12.3 test/binding_test.rb
backports-1.12.2 test/binding_test.rb
backports-1.12.1 test/binding_test.rb
backports-1.12.0 test/binding_test.rb
backports-1.11.2 test/binding_test.rb
backports-1.11.1 test/binding_test.rb
backports-1.11.0 test/binding_test.rb
backports-1.10.3 test/binding_test.rb
backports-1.10.2 test/binding_test.rb
backports-1.10.1 test/binding_test.rb
backports-1.10.0 test/binding_test.rb
backports-1.9.0 test/binding_test.rb
backports-1.8.4 test/binding_test.rb
backports-1.8.3 test/binding_test.rb
backports-1.8.1 test/binding_test.rb
backports-1.8.2 test/binding_test.rb
backports-1.8.0 test/binding_test.rb
backports-1.7.1 test/binding_test.rb