Sha256: 130d87db6f8064564ed89b00b9f16f8a3b54e84820e33b55d0e3c746d7d92b2e

Contents?: true

Size: 293 Bytes

Versions: 2

Compression:

Stored size: 293 Bytes

Contents

$:.unshift(File.dirname(__FILE__) + '/../lib')
require 'rawler'
require 'fakeweb'

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rawler-0.0.4 spec/spec_helper.rb
rawler-0.0.3 spec/spec_helper.rb