Skip to content

Commit 850639f

Browse files
committed
simplify spec
1 parent 21f204d commit 850639f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

spec/ezclient_spec.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -396,8 +396,7 @@ def self.sign!(*); end
396396

397397
context "object inspectation" do
398398
specify "#inspect" do
399-
expect(response.inspect.gsub(/0x\w+/, "0x0000"))
400-
.to eq(<<~TXT.tr("\n", " ").gsub(/\s+/, " ").strip)
399+
expect(response.inspect.gsub(/0x\w+/, "0x0000")).to eq(<<~TXT.gsub(/\s+/, " ").strip)
401400
#<EzClient::Response:0x0000
402401
@http_response=#<HTTP::Response/1.1 201 Created {}>,
403402
@http_request=#<HTTP::Request/1.1 POST http://example.com/>,

0 commit comments

Comments
 (0)