Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
def if_mongrel(msg="Install mongrel to run this test", &block) do begin require 'rubygems' require 'mongrel' rescue pending(msg) end block.call end # Use with it "should be neat" do if_mongrel do @mongrel.should be_kind_of(Mongrel) end end
This paste will be private.
From the Design Piracy series on my blog: