[test] add spec for RM-494

This commit is contained in:
Watson
2014-05-08 22:11:02 +09:00
parent 279f1e0c66
commit 1b58677c11
2 changed files with 10 additions and 2 deletions

View File

@@ -313,11 +313,19 @@ describe "Kernel.#block_given?" do
end
end
# RM-193
describe "Method#to_proc" do
# RM-193
it "should return lambda block" do
method(:test_block_dvars_proc).to_proc.lambda?.should == true
end
# RM-RM-494
it "Proc object should be able to call" do
@proc = method(:test_block_dvars_proc).to_proc
wait(0.2) {
@proc.call.call.should == '123456'
}
end
end
describe "Proc#owner" do