Sha256: fe46352b04bfd6d6541c3ae04583d098437725004ff257266080eb6acbb7ed51
Contents?: true
Size: 568 Bytes
Versions: 8
Compression:
Stored size: 568 Bytes
Contents
require File.join(File.dirname(__FILE__), '..', 'spec_helper') describe "Proc#to_source from do ... end block (w nested method)" do should 'handle simple' do ( lambda do def aa; x = 1; end end ).should.be having_source(%Q\ proc do def aa; x = 1; end end \) end should 'handle nested' do ( lambda do def aa def bb; x = 2; end end end ).should.be having_source(%Q\ proc do def aa def bb; x = 2; end end end \) end end
Version data entries
8 entries across 8 versions & 1 rubygems