We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 260d827 commit 735efbeCopy full SHA for 735efbe
fixtures/async/http/a_protocol.rb
@@ -190,9 +190,7 @@ module HTTP
190
elsif request.method == 'GET'
191
expect(request.body).to be_nil
192
193
- ::Protocol::HTTP::Response[200, {
194
- 'remote-address' => request.remote_address.inspect
195
- }, ["#{request.method} #{request.version}"]]
+ ::Protocol::HTTP::Response[200, {'my-header' => 'my-value'}, ["#{request.method} #{request.version}"]]
196
else
197
::Protocol::HTTP::Response[200, {}, ["Hello World"]]
198
end
@@ -276,8 +274,8 @@ def after
276
274
tempfile.close
277
275
278
279
- it "has remote-address header" do
280
- expect(response.headers['remote-address']).not.to be_nil
+ it "has response header" do
+ expect(response.headers['my-header']).to be == ['my-value']
281
282
283
it "has protocol version" do
0 commit comments