Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: jruby/jruby
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 8305707fa1ce
Choose a base ref
...
head repository: jruby/jruby
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: e58fd933654d
Choose a head ref
  • 2 commits
  • 1 file changed
  • 2 contributors

Commits on Jul 25, 2015

  1. Add MRI test for proc visibility

    For #3173 and to check against future regression. Was broken in
    9.0.0.0 but seems to be fixed in 9.0.1.0.
    dirk committed Jul 25, 2015
    Copy the full SHA
    f87d5bf View commit details

Commits on Jul 27, 2015

  1. Merge pull request #3187 from dirk/test/mri-ruby-proc-visibility

    Add MRI test for proc visibility
    enebo committed Jul 27, 2015
    Copy the full SHA
    e58fd93 View commit details
Showing with 10 additions and 0 deletions.
  1. +10 −0 test/mri/ruby/test_proc.rb
10 changes: 10 additions & 0 deletions test/mri/ruby/test_proc.rb
Original file line number Diff line number Diff line change
@@ -377,6 +377,16 @@ class << b; attr_accessor :foo; end
assert_equal([1, 2, 3], b.eval("[x, y, z]"))
end

def identity_proc
p = proc { p }
end

def test_visibility
p = identity_proc

assert_equal(p.call, p)
end

def test_proc_lambda
assert_raise(ArgumentError) { proc }
assert_raise(ArgumentError) { lambda }