diff tests/servings/test_debug_info.yaml @ 397:879b6b5647a8

tests: Move all bakes/cli/servings tests files to have a YAML extension.
author Ludovic Chabant <ludovic@chabant.com>
date Mon, 18 May 2015 15:48:45 -0700
parents tests/servings/test_debug_info.serve@dc0988d937b3
children e7fb848fd55d
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/servings/test_debug_info.yaml	Mon May 18 15:48:45 2015 -0700
@@ -0,0 +1,43 @@
+---
+url: /foo
+in: 
+    pages/foo.md: |
+        BLAH
+        {{piecrust.debug_info}}
+out: BLAH
+---
+url: /foo?!debug
+in:
+    pages/foo.md: |
+        BLAH
+        {{piecrust.debug_info}}
+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
+