Sha256: 5202bb4e836b5e9d43cdabee16064ee3c8438126850140304e7a1e895ac5f719

Contents?: true

Size: 280 Bytes

Versions: 1

Compression:

Stored size: 280 Bytes

Contents

require "spec_helper"

module Bickle
  describe HttpClient do
    it "handles standard errors" do
      RestClient.should_receive(:get).with("foo").and_raise(StandardError)

      expect do
        HttpClient.get("foo")
      end.to raise_error(HttpClientError)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bickle-0.0.1 spec/http_client_spec.rb