Skip to content

Commit

Permalink
fix: Update #update to return empty response
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewvy committed Jul 11, 2024
1 parent 61b4305 commit 2a356bd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion lib/panda_doc/document.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions spec/document_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 2a356bd

Please sign in to comment.