~ubuntu-branches/ubuntu/raring/libconfig-auto-perl/raring

« back to all changes in this revision

Viewing changes to t/xml-unavailable.t

  • Committer: Bazaar Package Importer
  • Author(s): Alessandro Ghedini, gregor herrmann, Rene Mayorga
  • Date: 2011-02-28 17:48:18 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20110228174818-uqiabt4c03l2tsk1
Tags: 0.32-1
* New upstream release
* Switch to 3.0 (quilt)
* Bump debhelper to 8
* Remove/update versioned dependencies
* Add myself to Uploaders and debian/copyright
* Switch to short-form dh
* Bump Standards-Version (no changes needed)
* Add libio-string-perl to (Build-)Depends(-Indep)
* Bump Standards-Version (no changes needed)

[ gregor herrmann ]
* debian/control: Changed: Switched Vcs-Browser field to ViewSVN
  (source stanza).
* Change my email address.
* debian/control: lowercase short description; mention module name in long
  description.

[ Rene Mayorga ]
* debian/control: update my email address.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
use Test::More tests => 3;
2
 
use strict;
3
 
use warnings;
4
 
use File::Spec::Functions;
5
 
 
6
 
### whitebox test, disabling XML::Simple
7
 
{   package XML::Simple;
8
 
    $INC{'XML/Simple.pm'} = $0;
9
 
    
10
 
    sub import { die };
11
 
}
12
 
 
13
 
use_ok('Config::Auto');
14
 
 
15
 
eval { Config::Auto::parse(
16
 
            'config.xml',path => catdir('t','config')
17
 
        );
18
 
};
19
 
 
20
 
ok( $@,                     "parse() on xml dies without XML::Simple" );
21
 
like( $@, qr/XML::Simple/,  "   Error message is informative" );