diff --git a/fixtures/async/http/a_protocol.rb b/fixtures/async/http/a_protocol.rb index c9a40c9e..85230f37 100644 --- a/fixtures/async/http/a_protocol.rb +++ b/fixtures/async/http/a_protocol.rb @@ -190,9 +190,7 @@ module HTTP elsif request.method == 'GET' expect(request.body).to be_nil - ::Protocol::HTTP::Response[200, { - 'remote-address' => request.remote_address.inspect - }, ["#{request.method} #{request.version}"]] + ::Protocol::HTTP::Response[200, {'my-header' => 'my-value'}, ["#{request.method} #{request.version}"]] else ::Protocol::HTTP::Response[200, {}, ["Hello World"]] end @@ -276,8 +274,8 @@ def after tempfile.close end - it "has remote-address header" do - expect(response.headers['remote-address']).not.to be_nil + it "has response header" do + expect(response.headers['my-header']).to be == 'my-value' end it "has protocol version" do