mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-03-30 17:43:26 +08:00
add test for RM-193
This commit is contained in:
@@ -312,3 +312,10 @@ describe "Kernel.#block_given?" do
|
||||
first_block.should == true
|
||||
end
|
||||
end
|
||||
|
||||
# RM-193
|
||||
describe "Method#to_proc" do
|
||||
it "should return lambda block" do
|
||||
method(:test_block_dvars_proc).to_proc.lambda?.should == true
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user