spec/processor/middleware/parse_json_spec.rb in pupa-0.1.11 vs spec/processor/middleware/parse_json_spec.rb in pupa-0.2.0
- old
+ new
@@ -83,8 +83,8 @@
expect(process(json, 'a/d').body).not_to be_a(Hash)
end
end
it "chokes on invalid json" do
- expect{ process('{') }.to raise_error
+ expect{ process('{') }.to raise_error(Faraday::ParsingError)
end
end