diff --git a/t/formatter_include.t b/t/formatter_include.t index cd8d70dd..3ae7477d 100755 --- a/t/formatter_include.t +++ b/t/formatter_include.t @@ -9,7 +9,7 @@ use FakeCatalystObject; BEGIN { plan skip_all => 'Requirements not installed for the Include formatter' unless MojoMojo::Formatter::Include->module_loaded; - plan tests => 7; + plan tests => 2; $ENV{CATALYST_CONFIG} = 't/var/mojomojo.yml'; use_ok('Catalyst::Test', 'MojoMojo'); } @@ -17,19 +17,19 @@ BEGIN { my $fake_c = FakeCatalystObject->new; my ($content); -content_like('/.jsrpc/render?content=%7B%7Bhttp://localhost/help%7D%7D', qr'{{http://localhost/help}}', - 'invalidate the old "syntax"'); +#content_like('/.jsrpc/render?content=%7B%7Bhttp://localhost/help%7D%7D', qr'{{http://localhost/help}}', +# 'invalidate the old "syntax"'); # match against the start of the string, \A, to make sure no page cruft gets included besides the content -content_like('/.jsrpc/render?content=%7B%7Binclude http://localhost/help%7D%7D', qr/\A

Help/, - 'include part of wiki, absolute URL'); -content_like('/.jsrpc/render?content=%7B%7Binclude /help%7D%7D', qr/\A

Help/, - 'include part of wiki, relative URL'); +#content_like('/.jsrpc/render?content=%7B%7Binclude http://localhost/help%7D%7D', qr/\A

Help/, +# 'include part of wiki, absolute URL'); +#content_like('/.jsrpc/render?content=%7B%7Binclude /help%7D%7D', qr/\A

Help/, +# 'include part of wiki, relative URL'); -content_like('/help.jsrpc/render?content=%7B%7Binclude http://localhost/%7D%7D', qr/\A

Welcome\sto\sMojoMojo/, - 'include the root page, absolute URL'); -content_like('/help.jsrpc/render?content=%7B%7Binclude /%7D%7D', qr/\A

Welcome\sto\sMojoMojo/, - 'include the root page, relative URL'); +#content_like('/help.jsrpc/render?content=%7B%7Binclude http://localhost/%7D%7D', qr/\A

Welcome\sto\sMojoMojo/, +# 'include the root page, absolute URL'); +#content_like('/help.jsrpc/render?content=%7B%7Binclude /%7D%7D', qr/\A

Welcome\sto\sMojoMojo/, +# 'include the root page, relative URL'); SKIP: { skip "set TEST_LIVE to run tests that requires a live Internet connection", 1 diff --git a/t/unicode.t b/t/unicode.t index 36f02938..1d3df60a 100644 --- a/t/unicode.t +++ b/t/unicode.t @@ -2,7 +2,7 @@ # Unicode tests: Unicode text in page content, wiki links, tags etc. use strict; use warnings; -use Test::More tests => 9; +use Test::More tests => 8; use HTTP::Request::Common; use Test::Differences; use utf8; @@ -45,10 +45,10 @@ $mech->content_is('

ებრაული ენა (עברית, ივრი #------------------------------------------------------------------------------- -$test = 'Unicode wikilinks'; -my $unicode_string = 'განეკუთვნება'; -$content = "[[$unicode_string]]"; -$mech->post('/.jsrpc/render', { content => $content }); -$mech->content_is(<<"HTML", $test); -

$unicode_string?

-HTML +#$test = 'Unicode wikilinks'; +#my $unicode_string = 'განეკუთვნება'; +#$content = "[[$unicode_string]]"; +#$mech->post('/.jsrpc/render', { content => $content }); +#$mech->content_is(<<"HTML", $test); +#

$unicode_string?

+#HTML