Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37404789
en ru br
ALT Linux repos
S:1.60-alt1.1
5.0: 1.22-alt1
4.1: 1.10-alt0.1
4.0: 1.10-alt0.1

Group :: Development/Perl
RPM: perl-Test-WWW-Mechanize

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define _unpackaged_files_terminate_build 1
#
#   - Test::WWW::Mechanize -
#   This spec file was automatically generated by cpan2rpm [ver: 2.027]
#   (ALT Linux revision)
#   The following arguments were used:
#       --spec-only Test::WWW::Mechanize
#   For more information on cpan2rpm please visit: http://perl.arix.com/
#

%define module Test-WWW-Mechanize
%define m_distro Test-WWW-Mechanize
%define m_name Test::WWW::Mechanize
%define m_author_id unknown
%define _disable_test 1

Name: perl-Test-WWW-Mechanize
Version: 1.60
Release: alt1.1

Summary: Test-WWW-Mechanize - Testing-specific WWW::Mechanize subclass

License: Artistic
Group: Development/Perl
Url: %CPAN %m_distro

Packager: Vitaly Lipatov <lav at altlinux.ru>

BuildArch: noarch
Source0: http://www.cpan.org/authors/id/P/PE/PETDANCE/%{module}-%{version}.tar.gz

# Automatically added by buildreq on Tue Jul 01 2008

BuildRequires: libnss-mdns perl-Carp-Assert-More perl-HTML-Lint perl-HTTP-Server-Simple perl-Test-LongString perl-Test-Pod perl-Test-Pod-Coverage perl-WWW-Mechanize

%description
Test::WWW::Mechanize is a subclass of WWW::Mechanize that incorporates
features for web application testing.  For example:

   $mech->get_ok( $page );
   $mech->title_is( "Invoice Status", "Make sure we're on the invoice page" );
   $mech->content_contains( "Andy Lester", "My name somewhere" );
   $mech->content_like( qr/(cpan|perl)\.org/, "Link to perl.org or CPAN" );

This is equivalent to:

   $mech->get( $page );
   ok( $mech->success );
   is( $mech->title, "Invoice Status", "Make sure we're on the invoice page" );
   ok( index( $mech->content, "Andy Lester" ) >= 0, "My name somewhere" );
   like( $mech->content, qr/(cpan|perl)\.org/, "Link to perl.org or CPAN" );

but has nicer diagnostics if they fail.

%prep
%setup -q -n %{module}-%{version}

%build
%perl_vendor_build

%install
%perl_vendor_install
rm -rf %buildroot%perl_vendor_man3dir/

%files
%doc README.md Changes
%perl_vendor_privlib/Test/*

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin