Sha256: 1b585d9b3a4af6414626d78263a24336b1868ac74580a36588bc2f40386d0f0c

Contents?: true

Size: 522 Bytes

Versions: 2

Compression:

Stored size: 522 Bytes

Contents

$:.unshift(File.dirname(__FILE__))
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
        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

2 entries across 2 versions & 1 rubygems

Version Path
anemone-0.6.1 spec/http_spec.rb
anemone-0.6.0 spec/http_spec.rb