diff options
author | Antoine Beaupré <anarcat@koumbit.org> | 2013-09-07 18:50:53 -0400 |
---|---|---|
committer | Antoine Beaupré <anarcat@koumbit.org> | 2013-11-29 01:09:04 -0500 |
commit | 2a143bfd0be3f286249a19304bb908e3b0d63cc1 (patch) | |
tree | a46c68a3aad8cac2a45542c67c3fdd41f81b7621 /t | |
parent | 9293d2c7064c7c6aafb84ef2351396c68f3b9551 (diff) | |
download | ikiwiki-2a143bfd0be3f286249a19304bb908e3b0d63cc1.tar ikiwiki-2a143bfd0be3f286249a19304bb908e3b0d63cc1.tar.gz |
don't edit config setting, but a temporary variable, complete and unbreak tests
Diffstat (limited to 't')
-rw-r--r-- | t/syslog.t | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/t/syslog.t b/t/syslog.t index 28272e2dc..ffe8635b3 100644 --- a/t/syslog.t +++ b/t/syslog.t @@ -1,14 +1,18 @@ #!/usr/bin/perl use warnings; use strict; -use Test::More tests => 3; +use Test::More tests => 5; use utf8; BEGIN { use_ok("IkiWiki"); } $IkiWiki::config{verbose} = 1; $IkiWiki::config{syslog} = 1; -$IkiWiki::config{wikiname} = 'ascii'; -is(debug('test'), ''); + +$IkiWiki::config{wikiname} = 'ASCII'; +is(debug('test'), '', 'plain ASCII syslog'); $IkiWiki::config{wikiname} = 'not ⒶSCII'; -is(debug('test'), ''); +is(debug('test'), '', 'UTF8 syslog'); +my $orig = $IkiWiki::config{wikiname}; +is(debug('test'), '', 'check for idempotency'); +is($IkiWiki::config{wikiname}, $orig, 'unchanged config'); |