Sha256: bed95abc832ca1841264a942b0ec1b44678a1621252667c39f7973c758e46365

Contents?: true

Size: 438 Bytes

Versions: 6

Compression:

Stored size: 438 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
        http.fetch_page(SPEC_DOMAIN).should be_an_instance_of(Page)
      end

    end
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
rodneyc-anemone-0.7.1.3 spec/http_spec.rb
rodneyc-anemone-0.7.1.2 spec/http_spec.rb
rodneyc-anemone-0.7.1.1 spec/http_spec.rb
anemone-0.7.2 spec/http_spec.rb
anemone-0.7.1 spec/http_spec.rb
anemone-0.7.0 spec/http_spec.rb