diff --git a/lib/web_console/testing/fake_middleware.rb b/lib/web_console/testing/fake_middleware.rb index bd278d46..ba100dc9 100644 --- a/lib/web_console/testing/fake_middleware.rb +++ b/lib/web_console/testing/fake_middleware.rb @@ -29,7 +29,7 @@ def view # extract target path from REQUEST_PATH def req_path(env) - env["REQUEST_PATH"].match(@req_path_regex)[1] + File.basename(env["REQUEST_PATH"].match(@req_path_regex)[1], ".*") end def render(template)