Sha256: 7d636c98f6cb1f8105996d9bc8240ea8418ee2fc4204ddb527a4314cf6513553
Contents?: true
Size: 774 Bytes
Versions: 2
Compression:
Stored size: 774 Bytes
Contents
require 'spec_helper' describe VulnDBHQ::Client do pending "catches Faraday errors" # it "catches Faraday errors" do # subject.stub!(:connection).and_raise(Faraday::Error::ClientError.new("Oups")) # lambda do # subject.request(:get, "/path", {}, {}) # end.should raise_error(VulnDBHQ::Error::ClientError, "Oups") # end pending "catches MultiJson::DecodeError errrors" # it "catches MultiJson::DecodeError errors" do # subject.stub!(:connection).and_raise(MultiJson::DecodeError.new("unexpected token", [], "<!DOCTYPE html>")) # lambda do # subject.request(:get, "/path") # end.should raise_error(Twitter::Error::DecodeError, "unexpected token") # end pending "raises an exception if no host endpoint has been provided" end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
vulndbhq-0.1.1 | spec/vulndbhq/client_spec.rb |
vulndbhq-0.1.0 | spec/vulndbhq/client_spec.rb |