spec/format_whm_spec.rb in lumberg-3.1.0 vs spec/format_whm_spec.rb in lumberg-4.0.0

- old
+ new

@@ -52,12 +52,12 @@ env[:body][:params][:message].should eq "some data" end end - context "API unavailable" do + context "non-JSON response" do it "raises a Lumberg::WhmConnectionError" do - env = { body: "cPanel operations have been temporarily suspended", response_headers: { foo: "bar" } } + env = { body: "<HTML>Not JSON, for some stupid reason</HTML>", response_headers: { foo: "bar" } } expect { subject.on_complete(env) }.to raise_error(Lumberg::WhmConnectionError) end end end