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
|

