Sha256: 3de9d5a32784aecd4fc25300984e4ff2d9937d7281e05a8a44081cb522da2362
Contents?: true
Size: 666 Bytes
Versions: 8
Compression:
Stored size: 666 Bytes
Contents
require File.join(File.dirname(__FILE__), '..', 'spec_helper') describe "Proc#to_source from do ... end block (w nested case)" do should 'handle simple' do ( lambda do case @x1 when true then false end end ).should.be having_source(%Q\ proc do case @x1 when true then false end end \) end should 'handle nested' do ( lambda do case @x1 when true case @x2 when false then true end end end ).should.be having_source(%Q\ proc do case @x1 when true case @x2 when false then true end end end \) end end
Version data entries
8 entries across 8 versions & 1 rubygems