Created
July 17, 2013 12:43
-
-
Save matsu911/6020219 to your computer and use it in GitHub Desktop.
RubyMotion 2.4のブロックに関するバグ。
block内のローカル変数が外側の同名の変数を上書きしている。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe "Application 'block_bug'" do | |
it "block bug" do | |
x = 1 | |
[2, 3].each{ |x| x} | |
x.should == 1 | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment