spec/faraday_spec.rb in vulndbhq-0.0.1.beta vs spec/faraday_spec.rb in vulndbhq-0.1.0
- old
+ new
@@ -1,5 +1,7 @@
+require 'spec_helper'
+
describe 'Faraday response' do
context "for valid object" do
let(:middleware) { VulnDBHQ::Response::ParseJson.new(lambda{|env| Faraday::Response.new(env)}) }
@@ -14,12 +16,7 @@
response.body.should be_a_kind_of(Hash)
response.body.keys.should include(:a)
response.body.keys.should include(:b)
response.body[:b].should eq('dos')
end
- end
-
- context "for invalid object" do
- let(:client) { VulnDBHQ::Client.new }
- pending "handles 404 responses"
end
end
\ No newline at end of file