<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -4,10 +4,11 @@ use 5.008;
 use strict;
 use warnings 'all';
 
-use Test::Command 0.08 tests =&gt; 1;
+use Test::Command 0.08 tests =&gt; 2;
 use Test::More 0.94;
 use Test::Requires 0.02 {
 	'Getopt::Long' =&gt; 2.33,
+	'Pod::Usage'   =&gt; 1.36,
 };
 
 my $send_nsca = 'bin/send_nsca';
@@ -15,12 +16,8 @@ my $send_nsca = 'bin/send_nsca';
 ###########################################################################
 # TEST USAGE MESSAGE
 subtest 'Usage statement' =&gt; sub {
-
 	my $cmd = Test::Command-&gt;new(cmd =&gt; [$^X, $send_nsca, '--help']);
 
-	# Pod::Usage is required
-	Test::Requires-&gt;import('Pod::Usage');
-
 	plan tests =&gt; 14;
 
 	$cmd-&gt;exit_is_num(0, 'Exits with 0');
@@ -41,4 +38,17 @@ subtest 'Usage statement' =&gt; sub {
 	$cmd-&gt;stdout_like(qr{defaults? to tab}, 'Mentions default delimiter');
 };
 
+###########################################################################
+# TEST VERSION MESSAGE
+subtest 'Version statement' =&gt; sub {
+	my $cmd = Test::Command-&gt;new(cmd =&gt; [$^X, $send_nsca, '--version']);
+
+	plan tests =&gt; 3;
+
+	$cmd-&gt;exit_is_num(0, 'Exits with 0');
+	$cmd-&gt;stderr_is_eq(q{}, 'Prints nothing on stderr');
+
+	$cmd-&gt;stdout_like(qr{$send_nsca version (?:\d+\.?)+}, 'Prints version');
+};
+
 exit 0;</diff>
      <filename>t/send_nsca.t</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>adb00ec5bb5e2f81f213e4878668dbb35560378d</id>
    </parent>
  </parents>
  <author>
    <name>Douglas Christopher Wilson</name>
    <email>dougwilson@live.com</email>
  </author>
  <url>http://github.com/dougwilson/perl5-net-nsca-client/commit/dc06ecd20d1e3037df46657bf7762cd0cad7da94</url>
  <id>dc06ecd20d1e3037df46657bf7762cd0cad7da94</id>
  <committed-date>2009-10-31T23:29:49-07:00</committed-date>
  <authored-date>2009-10-31T23:29:49-07:00</authored-date>
  <message>Fix the usage test and add a version test</message>
  <tree>3a8c20b06b28ccec2cb6ed43b3b1306873044644</tree>
  <committer>
    <name>Douglas Christopher Wilson</name>
    <email>dougwilson@live.com</email>
  </committer>
</commit>
