diff --git a/spec/server/tcp_spec.rb b/spec/server/tcp_spec.rb index e538a34a..48d82d7b 100644 --- a/spec/server/tcp_spec.rb +++ b/spec/server/tcp_spec.rb @@ -38,7 +38,7 @@ end it "should retrieve remote address" do - expect(get('/')).to include('"REMOTE_ADDR"=>"127.0.0.1"') + expect(get('/')).to be =~ /"REMOTE_ADDR"\s*=>\s*"127.0.0.1"/ end after do