Commit Graph
49 Commits
Author SHA1 Message Date
Graham Ollis 7bccefd01b more descriptive test names 2013-01-28 09:20:17 -05:00
Graham Ollis 408cba6c35 fix but where DATA templates are not being rendered 2013-01-27 22:48:55 -05:00
Graham Ollis c1afea55a9 add some tests for default templates.
the second one fails, this needs to be fixed soon.
2013-01-27 22:14:04 -05:00
Graham Ollis 88041ec8b0 fix cpantesters failures based on permissions 2013-01-12 09:05:35 -05:00
Rafael Kitover d45efa5405 failing test for not returning not found correctly 2013-01-09 13:13:53 -05:00
Graham Ollis 7618cacaa4 fix hang in t/deep_recursion.t on *BSD 2012-12-27 14:51:34 -05:00
Graham Ollis fb396704bf Merge branch 'master' of github.com:abh/mojox-renderer-tt 2012-12-27 13:22:20 -05:00
Graham Ollis 1d9ea654e9 use temp COMPILE_DIR to avoid test failures
where the default COMPILE_DIR already exists and is owned
by another user or not writable for some other reason by
the testing user.
2012-12-27 13:21:23 -05:00
Graham Ollis 3ec7366d6e better diagnostics
use filename and linenumber in eval for better diagnostic in test
2012-12-26 21:56:21 -05:00
Graham Ollis a5e72c7526 rm commented code 2012-12-26 21:26:57 -05:00
Graham Ollis 6146b1f2f5 set locale "C" in tests
This ensures that the error string is what we expect it to be
2012-12-26 21:22:07 -05:00
Graham Ollis 5828f878d8 don't rely on English locale in test 2012-12-22 15:10:59 -05:00
Graham Ollis ce9e1b955e load test to test loading of all .pm files 2012-12-18 11:02:18 -05:00
Graham Ollis 37ee2ee753 support multiple renderer paths 2012-12-18 11:00:47 -05:00
Graham Ollis 51af0a7893 return 0 on not found 2012-08-25 07:15:15 -04:00
ollisg b48b4274db add test case for GH#30 2012-08-24 22:23:37 -04:00
Graham Ollis e64ce4c484 refactor fetching templates from DATA 2012-08-24 05:47:54 -04:00
Graham Ollis 24990483e5 avoid deep recursion
when using a tt template for exceptions, and there is
an exception in the template, don't go into infinite
recursion.
2012-08-21 16:30:19 -04:00
Graham Ollis a72ec0e750 ignore cycles that are taken care of in Template::Provider#DESTROY 2012-08-21 15:44:33 -04:00
Graham Ollis 2956335d9e use Test::Memory::Cycle instead of find_cycle 2012-08-21 14:55:28 -04:00
Graham Ollis 7d1ac4eecd tt is private. 2012-08-21 14:49:58 -04:00
Matthias Bethke 96d31d45a0 Added template for render error test 2012-05-18 00:41:21 -06:00
Matthias Bethke bbfab8db4e Checking HTTP status code for TT render error test 2012-05-18 00:40:50 -06:00
Matthias Bethke 92bb64406b Checking HTTP status code in TT render error test 2012-05-18 00:37:18 -06:00
Matthias Bethke 989ea57cf9 Fixed double TT rendering on error
If a template produced a rendering error in process() but did not produce one
when called without stash variables, the Mojo::Exception would be built
incorrectly, leading to an exception that masked the original error.
2012-05-17 14:00:17 -06:00
Magnus Holm 77b9531fae Add test case for cycles 2011-09-07 11:04:25 +02:00
Cosimo Streppone dae8329981 [GH#12] Drop MojoX::* namespace
Renamed MojoX:: namespace to Mojolicious::Plugin::TtRenderer::Engine,
so there's ::Engine, ::Helper and ::Provider.

MojoX:: is deprecated and not to be used, according to @sri.
2011-08-01 11:56:25 +02:00
Htbaa dc52fec399 Inline wrappers and includes now work on Windows
closes gh-13
2011-02-26 12:46:02 +01:00
Ask Bjørn Hansen 68747b7f2f Merge remote branch 'marcusramberg/master' 2011-02-06 15:57:10 -08:00
Marcus Ramberg 323d5a9294 Change to use relative paths, add exception template for tests 2011-02-06 08:50:02 +01:00
Ask Bjørn Hansen 392b97e81a Ignore .ttc files from tests 2011-02-05 12:22:44 -08:00
Maxim Vuets 5e5c23d786 Make Mojolicious 'layout'/'extends' working 2011-02-05 10:02:09 -08:00
Marcus Ramberg 01b8f94a2b Fix inline rendering and test failures 2011-01-22 17:50:08 +01:00
Marcus Ramberg 26d555938f Fix unicode test 2011-01-22 14:42:42 +01:00
Marcus Ramberg c3e8c9ff73 Tests for plugin 2010-10-10 06:02:54 +08:00
vti 201774941a Added inline template support 2010-10-05 09:02:39 +02:00
vti 9f26a20192 Fixed template path 2010-07-29 15:14:13 +03:00
vti 988d1f954b Die when helper is not found 2010-06-15 13:42:22 +02:00
vti 1e4eeba737 Added helpers 2010-06-15 13:29:30 +02:00
vti 96d2be17b4 Made it more modern 2010-06-15 12:27:12 +02:00
giftnuss d7726cfa0e Keep plugin in sync with mojo project
- Add test template with new naming schema

Signed-off-by: Ask Bjørn Hansen <ask@develooper.com>
2009-09-09 21:15:44 -07:00
Ask Bjørn Hansen 68438d57cb Mojo can't run with -T currently 2009-09-09 21:15:38 -07:00
giftnuss 165c3b39f2 Update stash key from 'template_path' to 'template' to match mojo change
Signed-off-by: Ask Bjørn Hansen <ask@develooper.com>
2009-07-29 15:44:10 -07:00
vti e779579347 test fix 2008-12-09 16:45:28 -08:00
Ask Bjørn Hansen 8402f4f597 Update to work with named parameters in new version of Mojo
Instead of "tx" pass the context in the "c" variable
2008-11-12 00:06:20 -08:00
Ask Bjørn Hansen 62146bb307 Rename "new" to "build"
Signed-off-by: Ask Bjørn Hansen <ask@develooper.com>
2008-11-12 00:04:09 -08:00
vti 68783f08e2 fixes due to new Mojo::Renderer error handling, tests
Signed-off-by: Ask Bjørn Hansen <ask@develooper.com>
2008-11-11 23:53:28 -08:00
Ask Bjørn Hansen 844476c63d remove default boilerplate test 2008-11-09 19:37:35 -08:00
Ask Bjørn Hansen ec79234a4a Module::Starter boilerplate 2008-11-09 04:09:03 -08:00