diff --git a/lib/panda_doc/document.rb b/lib/panda_doc/document.rb index b485343..b7060e8 100644 --- a/lib/panda_doc/document.rb +++ b/lib/panda_doc/document.rb @@ -9,7 +9,10 @@ def create(data) end def update(uuid, **data) - respond(ApiClient.request(:patch, "/documents/#{uuid}", **data)) + respond( + ApiClient.request(:patch, "/documents/#{uuid}", **data), + type: :base + ) end def send(uuid, **data) diff --git a/spec/document_spec.rb b/spec/document_spec.rb index 569ad8a..8430bec 100644 --- a/spec/document_spec.rb +++ b/spec/document_spec.rb @@ -327,9 +327,9 @@ context "with successful response" do let(:response) { successful_response } - let(:body) { document_body } + let(:body) { {} } - it_behaves_like "a document object interface" + it { expect { subject }.not_to raise_error } end end end