Skip to content

Commit

Permalink
code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
0exp committed Jun 18, 2024
1 parent 059ddc7 commit 0b358f4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion spec/ezclient_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ def self.sign!(*); end
let(:webmock_response) { { status: 201 } }

context "object inspectation" do
specify do
specify "#inspect" do
expect(response.inspect).to match({
req: {
raw: response.http_request.inspect,
Expand All @@ -388,6 +388,10 @@ def self.sign!(*); end
},
}.to_s)
end

specify "#to_s" do
expect(response.inspect).to eq(response.to_s)
end
end

context "201 response code" do
Expand Down

0 comments on commit 0b358f4

Please sign in to comment.