Skip to content
Browse files

added further skip tests

  • Loading branch information...
1 parent 05419cf commit 35dbe5a6d1ab3422d7023f18c4efdbf4fcd3e5df @barbie committed
Showing with 18 additions and 10 deletions.
  1. +3 −0 Changes
  2. +3 −3 META.json
  3. +3 −3 META.yml
  4. +1 −1 lib/Acme/CPANAuthors/British.pm
  5. +1 −1 lib/Acme/CPANAuthors/British/Companies.pm
  6. +7 −2 t/11companies.t
View
3 Changes
@@ -1,5 +1,8 @@
Revision history for Acme-CPANAuthors-British
+0.10 29/04/2012
+ - more reliable skip tests added to 11companies.t.
+
0.09 22/04/2012
- further spelling fix (Florian Schlichting).
- more reliable skip tests.
View
6 META.json
@@ -1,6 +1,6 @@
{
"name": "Acme-CPANAuthors-British",
- "version": "0.09",
+ "version": "0.10",
"abstract": "We are British CPAN authors.",
"author": [
"Barbie (BARBIE) <barbie@cpan.org>"
@@ -44,11 +44,11 @@
"provides": {
"Acme::CPANAuthors::British": {
"file": "lib/Acme/CPANAuthors/British.pm",
- "version": "0.09"
+ "version": "0.10"
},
"Acme::CPANAuthors::British::Companies": {
"file": "lib/Acme/CPANAuthors/British/Companies.pm",
- "version": "0.09"
+ "version": "0.10"
}
},
"no_index": {
View
6 META.yml
@@ -1,6 +1,6 @@
--- #YAML:1.0
name: Acme-CPANAuthors-British
-version: 0.09
+version: 0.10
abstract: We are British CPAN authors.
author:
- Barbie <barbie@cpan.org>
@@ -25,10 +25,10 @@ build_requires:
provides:
Acme::CPANAuthors::British:
file: lib/Acme/CPANAuthors/British.pm
- version: 0.09
+ version: 0.10
Acme::CPANAuthors::British::Companies:
file: lib/Acme/CPANAuthors/British/Companies.pm
- version: 0.09
+ version: 0.10
no_index:
directory:
- t
View
2 lib/Acme/CPANAuthors/British.pm
@@ -4,7 +4,7 @@ use warnings;
{
no strict "vars";
- $VERSION = "0.09";
+ $VERSION = "0.10";
}
use Acme::CPANAuthors::Register (
View
2 lib/Acme/CPANAuthors/British/Companies.pm
@@ -4,7 +4,7 @@ use warnings;
{
no strict "vars";
- $VERSION = "0.09";
+ $VERSION = "0.10";
}
use Acme::CPANAuthors::Register (
View
9 t/11companies.t
@@ -19,8 +19,13 @@ cmp_ok( ~~@ids, ">", 0, " .. \$authors->id gives a non-empty list" );
is( ~~@ids, $number, " .. \$authors->id equals \$authors->count" );
SKIP: {
- skip "CPAN configuration not available", 5
- unless eval "Acme::CPANAuthors::Utils::_cpan_authors_file() ; 1";
+ my $file;
+ eval { $file = Acme::CPANAuthors::Utils::_cpan_authors_file() };
+ skip "CPAN configuration not available", 5 if($@ || !$file);
+
+ $file = undef;
+ eval { $file = Acme::CPANAuthors::Utils::_cpan_packages_file() };
+ skip "CPAN configuration not available", 5 if($@ || !$file);
my @distros = $authors->distributions('FOTANGO');
cmp_ok( ~~@distros, ">", 0, " .. \$authors->distributions('FOTANGO') gives a non-empty list" );

0 comments on commit 35dbe5a

Please sign in to comment.
Something went wrong with that request. Please try again.