Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (15 sloc) 438 Bytes
require 'spec_helper'
module Anemone
describe HTTP do
describe "fetch_page" do
before(:each) do
FakeWeb.clean_registry
end
it "should still return a Page if an exception occurs during the HTTP connection" do
HTTP.stub!(:refresh_connection).and_raise(StandardError)
http = Anemone::HTTP.new
http.fetch_page(SPEC_DOMAIN).should be_an_instance_of(Page)
end
end
end
end