require File.dirname(File.join(__rhoGetCurrentDir(), __FILE__)) + '/../../spec_helper' describe "Proc#to_proc" do it "returns self" do [Proc.new {}, lambda {}, proc {}].each { |p| p.to_proc.should equal(p) } end end