diff --git a/spec/request/parser_spec.rb b/spec/request/parser_spec.rb index 70211cd..8808f62 100644 --- a/spec/request/parser_spec.rb +++ b/spec/request/parser_spec.rb @@ -116,7 +116,7 @@ EOS it 'should not fuck up on stupid fucked IE6 headers' do body = <<-EOS -POST /codes/58-tracking-file-downloads-automatically-in-google-analytics-with-prototype/refactors HTTP/1.0 +POST /codes/58-tracking-file-downloads-automatically-in-google-analytics-with-prototype/refactors HTTP/1.1 X-Real-IP: 62.24.71.95 X-Forwarded-For: 62.24.71.95 Host: refactormycode.com @@ -276,4 +276,4 @@ EOS expect(request.env['REQUEST_URI']).to eq("/H%uFFFDhnchenbrustfilet") end -end \ No newline at end of file +end diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 77bf42a..6363b5a 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -66,7 +66,7 @@ module Matchers class ValidateWithLint def matches?(request) @request = request - Rack::Lint.new(proc{[200, {'Content-Type' => 'text/html', 'Content-Length' => '0'}, []]}).call(@request.env) + Rack::Lint.new(proc{[200, {'content-type' => 'text/html', 'content-length' => '0'}, []]}).call(@request.env) true rescue Rack::Lint::LintError => e @message = e.message