From 171f4452e3d97fe0a207313081e7619a15daa759 Mon Sep 17 00:00:00 2001 From: Ryan Nowak Date: Mon, 11 Apr 2016 11:26:07 -0700 Subject: [PATCH] Repair failing functional test I recently consolidated some code in routing that made the behavior for attribute routes and conventional routes more consistent. So now, a catch-all will add a null value to the RVD if it doesn't capture any text, but will NOT trounce an existing value in the RVD. This test depended on the behavior where attribute routes didn't ever add a null value for a catch-all. The fix is to just add a default to the catch-all. --- test/WebSites/RoutingWebSite/Controllers/TeamController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/WebSites/RoutingWebSite/Controllers/TeamController.cs b/test/WebSites/RoutingWebSite/Controllers/TeamController.cs index 85f1c0fc5c..71ab959a19 100644 --- a/test/WebSites/RoutingWebSite/Controllers/TeamController.cs +++ b/test/WebSites/RoutingWebSite/Controllers/TeamController.cs @@ -63,8 +63,8 @@ namespace RoutingWebSite return Content(Url.Action(), "text/plain"); } - [HttpGet("/TeamName/{*Name}/")] - public ActionResult GetTeam(string name = "DefaultName") + [HttpGet("/TeamName/{*Name=DefaultName}/")] + public ActionResult GetTeam(string name) { return _generator.Generate("/TeamName/" + name); }