Mercurial > piecrust2
diff tests/servings/test_debug_info.serve @ 396:dc0988d937b3
serve: Fix bug where `?!debug` doesn't get appending correctly.
Add unit test.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Mon, 18 May 2015 15:35:52 -0700 |
parents | 3e4bb57d8506 |
children |
line wrap: on
line diff
--- a/tests/servings/test_debug_info.serve Sun May 17 15:28:23 2015 -0700 +++ b/tests/servings/test_debug_info.serve Mon May 18 15:35:52 2015 -0700 @@ -14,3 +14,30 @@ out_contains: | BLAH <div id="piecrust-debug-info" +--- +url: /foo +in: + pages/foo.md: BLAH {{pcurl('bar')}} +out: BLAH /bar.html +--- +url: /foo?!debug +in: + pages/foo.md: BLAH {{pcurl('bar')}} +out: BLAH /bar.html?!debug +--- +url: /foo +config: + site: + pretty_urls: true +in: + pages/foo.md: BLAH {{pcurl('bar')}} +out: BLAH /bar +--- +url: /foo?!debug +config: + site: + pretty_urls: true +in: + pages/foo.md: BLAH {{pcurl('bar')}} +out: BLAH /bar?!debug +