Fix Unit Tests

--HG--
branch : dev
This commit is contained in:
Renaud Paquay
2010-07-14 12:43:14 -07:00
parent 1a58dee719
commit 379fca0a43
2 changed files with 6 additions and 1 deletions

View File

@@ -12,7 +12,10 @@ namespace Orchard.Core.Routable.Handlers {
_routablePathConstraint = routablePathConstraint;
Filters.Add(StorageFilter.For(repository));
OnPublished<IsRoutable>((context, routable) => _routablePathConstraint.AddPath(routable.Path));
OnPublished<IsRoutable>((context, routable) => {
if (!string.IsNullOrEmpty(routable.Path))
_routablePathConstraint.AddPath(routable.Path);
});
}
}
public class IsRoutableHandler : ContentHandlerBase {