spec/spec_helper.rb in rawler-0.0.2 vs spec/spec_helper.rb in rawler-0.0.3

- old
+ new

@@ -3,8 +3,8 @@ require 'rawler' require 'fakeweb' FakeWeb.allow_net_connect = false -def register(uri, content, status=200) - FakeWeb.register_uri(:any, uri, :body => content, :status => status) +def register(uri, content, status=200, options={}) + FakeWeb.register_uri(:any, uri, { :body => content, :status => status, :content_type => 'text/html' }.merge(options)) end \ No newline at end of file