Sha256: 14ea20e91abd11b8f8d93d2c169650eaa6f439b18ed58bfaa642febe53eb84f2

Contents?: true

Size: 468 Bytes

Versions: 3

Compression:

Stored size: 468 Bytes

Contents

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(:page_class => Anemone::Page)
        http.fetch_page(SPEC_DOMAIN).should be_an_instance_of(Page)
      end

    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sutch-anemone-0.7.2.2 spec/http_spec.rb
sutch-anemone-0.7.2.1 spec/http_spec.rb
sutch-anemone-0.7.2 spec/http_spec.rb