spec/spec_helper.rb in rawler-0.1.7 vs spec/spec_helper.rb in rawler-0.1.8

- old
+ new

@@ -1,11 +1,11 @@ module Kernel - + def sleep(duration) nil end - + end $:.unshift(File.dirname(__FILE__) + '/../lib') require 'rawler' @@ -13,6 +13,11 @@ FakeWeb.allow_net_connect = false def register(uri, content, status=200, options={}) FakeWeb.register_uri(:any, uri, { :body => content, :status => status, :content_type => 'text/html' }.merge(options)) +end + +if ENV['COVERAGE'] + require 'simplecov' + SimpleCov.start end