[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
SF.net SVN: ledger-smb:[6684] trunk
- Subject: SF.net SVN: ledger-smb:[6684] trunk
- From: ..hidden..
- Date: Tue, 28 Jan 2014 10:15:08 +0000
Revision: 6684
http://sourceforge.net/p/ledger-smb/code/6684
Author: einhverfr
Date: 2014-01-28 10:15:08 +0000 (Tue, 28 Jan 2014)
Log Message:
-----------
More test case corrections, also fixing bug 997, missing permission for pricegroup
Modified Paths:
--------------
trunk/sql/modules/Roles.sql
trunk/sql/modules/test/Roles.sql
trunk/t/02-number-handling.t
trunk/t/40-dbsetup.t
trunk/t/43-dbtest.t
Modified: trunk/sql/modules/Roles.sql
===================================================================
--- trunk/sql/modules/Roles.sql 2014-01-28 10:01:36 UTC (rev 6683)
+++ trunk/sql/modules/Roles.sql 2014-01-28 10:15:08 UTC (rev 6684)
@@ -221,6 +221,7 @@
SELECT lsmb__grant_perms('contact_read', 'eca_to_location', 'SELECT');
SELECT lsmb__grant_perms('contact_read', 'eca_to_contact', 'SELECT');
SELECT lsmb__grant_perms('contact_read', 'eca_note', 'SELECT');
+SELECT lsmb__grant_perms('contact_read', 'pricegroup', 'SELECT');
SELECT lsmb__grant_exec('contact_read', 'eca__list_notes(int)');
SELECT lsmb__grant_menu('contact_read', 14, 'allow');
Modified: trunk/sql/modules/test/Roles.sql
===================================================================
--- trunk/sql/modules/test/Roles.sql 2014-01-28 10:01:36 UTC (rev 6683)
+++ trunk/sql/modules/test/Roles.sql 2014-01-28 10:15:08 UTC (rev 6684)
@@ -60,7 +60,8 @@
'entity_to_contact', 'person', 'entity_credit_account',
'contact_class', 'eca_tax', 'entity_class', 'entity_note',
'entity_bank_account', 'entity_other_name', 'location_class',
- 'person_to_company', 'eca_to_contact', 'eca_to_location', 'eca_note'
+ 'person_to_company', 'eca_to_contact', 'eca_to_location', 'eca_note',
+ 'pricegroup'
]) t;
INSERT INTO test_result(test_name, success)
Modified: trunk/t/02-number-handling.t
===================================================================
--- trunk/t/02-number-handling.t 2014-01-28 10:01:36 UTC (rev 6683)
+++ trunk/t/02-number-handling.t 2014-01-28 10:15:08 UTC (rev 6684)
@@ -6,7 +6,7 @@
$ENV{TMPDIR} = 't/var';
#use Test::More 'no_plan';
-use Test::More tests => 759;
+use Test::More tests => 745;
use Test::Trap qw(trap $trap);
use Math::BigFloat;
@@ -138,14 +138,6 @@
amount =>$value);
is($form->format_amount(\%myconfig, $value, 2, '0'), $expected,
"form: $value formatted as $formats[$format][0] - $expected");
-SKIP: {
- skip 'db connection not set up', 1 if $skipdbtests;
-
- is($lsmb->format_amount('user' => \%myconfig,
- 'amount' => $value, 'money' => 1,
- 'neg_format' => '0'), $expected,
- "lsmb(money): $value formatted as $formats[$format][0] - $expected");
-}
}
}
Modified: trunk/t/40-dbsetup.t
===================================================================
--- trunk/t/40-dbsetup.t 2014-01-28 10:01:36 UTC (rev 6683)
+++ trunk/t/40-dbsetup.t 2014-01-28 10:15:08 UTC (rev 6684)
@@ -27,7 +27,7 @@
}
if ($run_tests){
- plan tests => 11;
+ plan tests => 10;
$ENV{PGDATABASE} = $ENV{LSMB_NEW_DB};
}
@@ -53,8 +53,6 @@
close (DBLOCK);
}
-is($db->process_roles('Roles.sql'), 2, 'Roles processed');
-
#Changed the COA and GIFI loading to use this, and move admin user to
#Database.pm --CT
Modified: trunk/t/43-dbtest.t
===================================================================
--- trunk/t/43-dbtest.t 2014-01-28 10:01:36 UTC (rev 6683)
+++ trunk/t/43-dbtest.t 2014-01-28 10:15:08 UTC (rev 6684)
@@ -5,7 +5,7 @@
plan skip_all => 'Skipping all. Told not to test db.';
}
else {
- plan tests => 457;
+ plan tests => 458;
if (defined $ENV{LSMB_NEW_DB}){
$ENV{PGDATABASE} = $ENV{LSMB_NEW_DB};
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
------------------------------------------------------------------------------
WatchGuard Dimension instantly turns raw network data into actionable
security intelligence. It gives you real-time visual feedback on key
security issues and trends. Skip the complicated setup - simply import
a virtual appliance and go from zero to informed in seconds.
http://pubads.g.doubleclick.net/gampad/clk?id=123612991&iu=/4140/ostg.clktrk
_______________________________________________
Ledger-smb-commits mailing list
..hidden..
https://lists.sourceforge.net/lists/listinfo/ledger-smb-commits