[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
SF.net SVN: ledger-smb:[2632] trunk/t/04-template-handling.t
- Subject: SF.net SVN: ledger-smb:[2632] trunk/t/04-template-handling.t
- From: ..hidden..
- Date: Mon, 08 Jun 2009 17:22:06 +0000
Revision: 2632
http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=2632&view=rev
Author: einhverfr
Date: 2009-06-08 17:22:05 +0000 (Mon, 08 Jun 2009)
Log Message:
-----------
Correcting bad test cases
Modified Paths:
--------------
trunk/t/04-template-handling.t
Modified: trunk/t/04-template-handling.t
===================================================================
--- trunk/t/04-template-handling.t 2009-06-08 16:53:41 UTC (rev 2631)
+++ trunk/t/04-template-handling.t 2009-06-08 17:22:05 UTC (rev 2632)
@@ -426,10 +426,10 @@
$contact_template->render($contact_request);
my @output = get_output_line_array($contact_template);
-is(grep (/value="1" selected="selected">test1/, @output), 0, 'Select box Value 1 unselected');
-is(grep (/value="1000" selected="selected">test2/, @output), 1, 'Select box Value 1000 selected');
+is(grep (/value="1" selected="selected"/, @output), 0, 'Select box Value 1 unselected');
+is(grep (/value="1000" selected="selected"/, @output), 1, 'Select box Value 1000 selected');
is(grep (/<td class="description">dtest1/, @output), 1, 'Contact description shows');
-is(grep (/value="4" selected="selected">country4/, @output), 2, 'Default Country Set');
+is(grep (/value="4"\s+selected="selected">country4/, @output), 1, 'Default Country Set');
# bulk payment template tests
my $payment = LedgerSMB->new();
$payment->merge({
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.