correct specs, ensure crawler layout only applies to html

This commit is contained in:
Sam
2018-01-16 16:28:11 +11:00
parent 7b562d2f46
commit d7657d8e47
3 changed files with 16 additions and 3 deletions

View File

@ -6,6 +6,7 @@ describe Middleware::RequestTracker do
def env(opts = {})
{
"HTTP_HOST" => "http://test.com",
"HTTP_USER_AGENT" => "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.36",
"REQUEST_URI" => "/path?bla=1",
"REQUEST_METHOD" => "GET",
"rack.input" => ""