[libcode-tidyall-perl] 238/374: test badoption
Jonas Smedegaard
js at alioth.debian.org
Sun Sep 29 22:26:27 UTC 2013
This is an automated email from the git hooks/post-receive script.
js pushed a commit to branch master
in repository libcode-tidyall-perl.
commit 29195c9d5c773475335870ca43791c32c64ed49a
Author: Jonathan Swartz <swartz at pobox.com>
Date: Fri Sep 14 12:50:11 2012 -0400
test badoption
---
lib/Code/TidyAll/t/Plugin/JSLint.pm | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/lib/Code/TidyAll/t/Plugin/JSLint.pm b/lib/Code/TidyAll/t/Plugin/JSLint.pm
index e334299..6a3a9cf 100644
--- a/lib/Code/TidyAll/t/Plugin/JSLint.pm
+++ b/lib/Code/TidyAll/t/Plugin/JSLint.pm
@@ -23,6 +23,12 @@ sub test_main : Tests {
expect_ok => 1,
desc => 'ok - bad indentation, --white'
);
+ $self->tidyall(
+ source => 'var my_object = {};',
+ conf => { argv => '--badoption' },
+ expect_error => qr/Usage/,
+ desc => 'error - bad option'
+ );
}
1;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libcode-tidyall-perl.git
More information about the Pkg-perl-cvs-commits
mailing list