File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed
Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -147,7 +147,7 @@ def to_a
147147 #
148148 # @return [String]
149149 def inspect
150- "#<#{ self . class } #{ to_h . inspect } >"
150+ "#<#{ self . class } >"
151151 end
152152
153153 # Returns list of header names.
Original file line number Diff line number Diff line change @@ -162,7 +162,7 @@ def parse(type = nil)
162162
163163 # Inspect a response
164164 def inspect
165- "#<#{ self . class } /#{ @version } #{ code } #{ reason } #{ headers . to_h . inspect } >"
165+ "#<#{ self . class } /#{ @version } #{ code } #{ reason } #{ mime_type } >"
166166 end
167167
168168 private
Original file line number Diff line number Diff line change 282282
283283 before { headers . set :set_cookie , %w[ hoo=ray woo=hoo ] }
284284
285- it { is_expected . to eq ' #<HTTP::Headers {"Set-Cookie"=>["hoo=ray", "woo=hoo"]}>' }
285+ it { is_expected . to eq " #<HTTP::Headers>" }
286286 end
287287
288288 describe "#keys" do
Original file line number Diff line number Diff line change 155155 let ( :headers ) { { content_type : "text/plain" } }
156156 let ( :body ) { double to_s : "foobar" }
157157
158- it { is_expected . to eq ' #<HTTP::Response/1.1 200 OK {"Content-Type"=>" text/plain"}>' }
158+ it { is_expected . to eq " #<HTTP::Response/1.1 200 OK text/plain>" }
159159 end
160160
161161 describe "#cookies" do
You can’t perform that action at this time.
0 commit comments