Skip to content

Commit

Permalink
spec: for GH-3545 issue with current static scope nesting
Browse files Browse the repository at this point in the history
  • Loading branch information
kares committed Jan 18, 2017
1 parent 9aad929 commit f44d108
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions spec/regression/GH-3545_enclosing_scope_spec.rb
@@ -0,0 +1,22 @@
class GH3545Loop

def loop(dim1, dim2)
for i in 0..dim1
for j in 0..dim2
0.upto(1) do |x|
Hash.new
end
end
end
end

end

describe GH3545Loop do

it "GH-3545: should not raise retrieving current scope" do
pending 'FIXME: https://github.com/jruby/jruby/issues/3545'
expect { GH3545Loop.new.loop(2,2) }.not_to raise_exception
end

end

0 comments on commit f44d108

Please sign in to comment.