Commits

Shlomi Fish committed 5160490

Add t/cpan-changes.t and t/style-trailing-space.t

  • Participants
  • Parent commits 9d2d226

Comments (0)

Files changed (5)

File HTML-Widgets-NavMenu-ToJSON/Changes

 
 0.0.2   2014-01-31
         - Add minimum version of perl to Build.PL/META.yml.
+        - Add t/cpan-changes.t and t/style-trailing-space.t .
 
 0.0.1   2012-12-24
         First version, released on an unsuspecting world.

File HTML-Widgets-NavMenu-ToJSON/MANIFEST

 Build.PL
 Changes
+MANIFEST			This list of files
+META.json
+META.yml
+Makefile.PL
+README
 inc/Test/Run/Builder.pm
 lib/HTML/Widgets/NavMenu/ToJSON.pm
 lib/HTML/Widgets/NavMenu/ToJSON/Data_Persistence.pm
 lib/HTML/Widgets/NavMenu/ToJSON/Data_Persistence/YAML.pm
-MANIFEST			This list of files
-README
 t/00-load.t
+t/cpan-changes.t
 t/manifest.t
+t/output.t
 t/pod-coverage.t
 t/pod.t
-t/output.t
-Makefile.PL
-META.yml
-META.json
+t/style-trailing-space.t

File HTML-Widgets-NavMenu-ToJSON/README

 
 This distribution converts the navigation menus of HTML-Widgets-NavMenu
 to JSON so they can be embedded in JavaScript code or transferred using an
-AJAX (XMLHttpRequest) call, 
+AJAX (XMLHttpRequest) call,
 
 INSTALLATION
 

File HTML-Widgets-NavMenu-ToJSON/t/cpan-changes.t

+#!/usr/bin/perl
+
+use strict;
+use warnings;
+
+use Test::More;
+
+eval 'use Test::CPAN::Changes';
+plan skip_all => 'Test::CPAN::Changes required for this test' if $@;
+
+changes_ok();
+

File HTML-Widgets-NavMenu-ToJSON/t/style-trailing-space.t

+#!/usr/bin/perl
+
+use strict;
+use warnings;
+
+use Test::More;
+
+eval "use Test::TrailingSpace";
+if ($@)
+{
+    plan skip_all => "Test::TrailingSpace required for trailing space test.";
+}
+else
+{
+    plan tests => 1;
+}
+
+my $finder = Test::TrailingSpace->new(
+    {
+        root => '.',
+        filename_regex => qr/(?:(?:\.(?:t|pm|pl|PL|yml|json|arc|vim))|README|Changes|LICENSE)\z/,
+    },
+);
+
+# TEST
+$finder->no_trailing_space(
+    "No trailing space was found."
+);
+