Correct these tests to actually test right thing.
They were die'ing, alright, but not for the right reason.
This commit is contained in:
		
							parent
							
								
									a3aafac44a
								
							
						
					
					
						commit
						6d62cdeb6c
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -74,9 +74,9 @@ ok( (looks_like_number($id2) and $id2 > $id1),
 | 
				
			||||||
 | 
					
 | 
				
			||||||
=cut
 | 
					=cut
 | 
				
			||||||
 | 
					
 | 
				
			||||||
dies_ok { $sp->_addEmailAdress(undef, 'drapper@example.org', 'paypal'); }
 | 
					dies_ok { $sp->addEmailAddress(undef, 'drapper@example.org', 'paypal'); }
 | 
				
			||||||
        "_addEmailAdress: dies for undefined id";
 | 
					        "_addEmailAdress: dies for undefined id";
 | 
				
			||||||
dies_ok { $sp->_addEmailAdress("String", 'drapper@example.org', 'paypal'); }
 | 
					dies_ok { $sp->addEmailAddress("String", 'drapper@example.org', 'paypal'); }
 | 
				
			||||||
        "_addEmailAdress: dies for non-numeric id";
 | 
					        "_addEmailAdress: dies for non-numeric id";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
=item addAddressType
 | 
					=item addAddressType
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue