spec/emites/resources/base_spec.rb in emites-client-0.1.1 vs spec/emites/resources/base_spec.rb in emites-client-0.1.2
- old
+ new
@@ -37,24 +37,10 @@
before do
allow(Emites.configuration).to receive(:url).and_return("http://requestb.in")
end
- describe "#parsed_body" do
- before do
- allow(http).to receive(:send_request).and_return(request)
- end
-
- it "does not raise an error" do
- expect{ subject.parseable }.not_to raise_error
- end
-
- it "response returns an empty hash" do
- expect(subject.parseable).to eq({})
- end
- end
-
describe ".notify" do
before do
allow(http).to receive(:send_request).and_return(request)
end
@@ -91,6 +77,6 @@
it "raises an RequestTimeout" do
Typhoeus.stub(/timeout/).and_return(Typhoeus::Response.new(return_code: :operation_timedout))
expect { subject.timeout }.to raise_error(Emites::RequestTimeout)
end
end
-end
\ No newline at end of file
+end