Skip to content

Commit 083d49a

Browse files
committed
update tests to match new code
1 parent 4cf7c84 commit 083d49a

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

IFComp/lib/IFComp/Controller/Entry.pm

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,9 @@ sub create : Chained('root') : PathPart('create') : Args(0) {
101101
$c->res->redirect( $c->uri_for_action('/entry/list') );
102102
}
103103

104-
if ( $c->user->paypal eq '' && $c->user->venmo eq '' ) {
104+
if ( ( !defined( $c->user->paypal ) || $c->user->paypal eq '' )
105+
&& ( !defined( $c->user->venmo ) || $c->user->venmo eq '' ) )
106+
{
105107
$c->res->redirect( $c->uri_for_action('/entry/list') );
106108
}
107109

IFComp/t/lib/IFCompTestData.pm

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ sub add_test_data_to_schema {
3131
'password_md5', 'salt_md5',
3232
'email', 'email_is_public',
3333
'url', 'verified',
34-
'forum_handle',
34+
'forum_handle', 'venmo',
3535
],
3636
[ 1, 'user1',
3737
$HASHED_PASSWORD, $SALT,
@@ -40,23 +40,23 @@ sub add_test_data_to_schema {
4040
'user1_forum',
4141
],
4242
[ 2, 'Alice Author', $HASHED_PASSWORD,
43-
$SALT, 'author@example.com', 1, undef, 1, undef,
43+
$SALT, 'author@example.com', 1, undef, 1, undef, 'aliceworks',
4444
],
4545
[ 3, 'Victor Votecounter',
4646
$HASHED_PASSWORD,
47-
$SALT, 'votecounter@example.com', 1, undef, 1, undef,
47+
$SALT, 'votecounter@example.com', 1, undef, 1, undef, undef,
4848
],
4949
[ 4, 'Connie Curator',
5050
$HASHED_PASSWORD,
51-
$SALT, 'curator@example.com', 1, undef, 1, undef,
51+
$SALT, 'curator@example.com', 1, undef, 1, undef, undef,
5252
],
5353
[ 5, 'Cheddar Cheez',
5454
$HASHED_PASSWORD,
55-
$SALT, 'cheez@example.com', 1, undef, 1, undef,
55+
$SALT, 'cheez@example.com', 1, undef, 1, undef, undef,
5656
],
5757
[ 6, 'Patricia Prizemanager',
5858
$HASHED_PASSWORD,
59-
$SALT, 'prizes@example.com', 1, undef, 1, undef,
59+
$SALT, 'prizes@example.com', 1, undef, 1, undef, undef,
6060
],
6161
],
6262
);

0 commit comments

Comments
 (0)