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

« back to all changes in this revision

Viewing changes to t/20_XML_unvailable.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 strict;
 
2
use warnings;
 
3
use Test::More 'no_plan';
 
4
 
 
5
my $Class = 'Config::Auto';
 
6
 
 
7
### this includes a dummy XML::Simple that dies on import
 
8
use lib 't/lib';
 
9
 
 
10
use_ok( $Class );
 
11
 
 
12
{   my $obj = $Class->new( source => $$.$/, format => 'xml' );
 
13
    ok( $obj,                   "Object created" );
 
14
    
 
15
    eval { $obj->parse }; 
 
16
    ok( $@,                     "parse() on xml dies without XML::Simple" );
 
17
    like( $@, qr/XML::Simple/,  "   Error message is informative" );
 
18
}