def if_mongrel(msg="Install mongrel to run this test", &block) do begin require 'rubygems' require 'mongrel' rescue pending(msg) end block.callend# Use withit "should be neat" do if_mongrel do @mongrel.should be_kind_of(Mongrel) endend