Sha256: 1104018b25152b73db680ca342d949103cf262ddf446e287b2d3be52cc23bcf8
Contents?: true
Size: 513 Bytes
Versions: 3
Compression:
Stored size: 513 Bytes
Contents
require File.dirname(__FILE__) + '/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 class HTTP def refresh_connection raise "test exception" end end http = Anemone::HTTP.new http.fetch_page(SPEC_DOMAIN).should be_an_instance_of(Page) end end end end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
anemone-0.5.0 | spec/http_spec.rb |
spk-anemone-0.4.0 | spec/http_spec.rb |
anemone-0.4.0 | spec/http_spec.rb |