Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added the url method of Software::License::BSD. It was missing.

Added a test file to test for it.

Signed-off-by: Ricardo Signes <com.github@rjbs.manxome.org>
  • Loading branch information...
commit 756465c1f9d03e5007ab8ac5f03f082ae4ef0bd9 1 parent 81705ef
@shlomif authored rjbs committed
Showing with 14 additions and 0 deletions.
  1. +1 −0  lib/Software/License/BSD.pm
  2. +13 −0 t/bsd-url.t
View
1  lib/Software/License/BSD.pm
@@ -10,6 +10,7 @@ Software::License::BSD - The (three-clause) BSD License
=cut
sub name { 'The (three-clause) BSD License' }
+sub url { 'http://www.opensource.org/licenses/bsd-license.php' }
sub meta_yml_name { 'bsd' }
1;
View
13 t/bsd-url.t
@@ -0,0 +1,13 @@
+#!perl
+use strict;
+use warnings;
+use Test::More tests => 1;
+
+use Software::License::BSD;
+
+# TEST
+is (scalar(Software::License::BSD->url()),
+ 'http://www.opensource.org/licenses/bsd-license.php',
+ "BSD->url() is OK."
+);
+
Please sign in to comment.
Something went wrong with that request. Please try again.