Sha256: de4bf39e80ed06267e8835f0d6318ee05f1e694f6812dc2f86ebfb4fad048169
Contents?: true
Size: 502 Bytes
Versions: 5
Compression:
Stored size: 502 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 = HTTP.new http.fetch_page(SPEC_DOMAIN).should be_an_instance_of(Page) end end end end
Version data entries
5 entries across 5 versions & 2 rubygems
Version | Path |
---|---|
anemone-0.3.2 | spec/http_spec.rb |
spk-anemone-0.3.1 | spec/http_spec.rb |
anemone-0.3.1 | spec/http_spec.rb |
spk-anemone-0.3.0 | spec/http_spec.rb |
anemone-0.3.0 | spec/http_spec.rb |