Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixing unit tests that didint account for a UIButton that is placed o…

…n that view
  • Loading branch information...
commit 39656ba7e37a16bf63974b6288110aa4c5e2149c 1 parent a06003d
@setuid setuid authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 AutoBuildCD/AutoBuildCDTests/ABViewControllerTests.m
View
5 AutoBuildCD/AutoBuildCDTests/ABViewControllerTests.m
@@ -15,7 +15,10 @@ @implementation ABViewControllerTests
-( void ) test_subviews_count
{
ABViewController* abvc = [[ABViewController alloc] init];
- STAssertTrue( [abvc.view.subviews count] == 0, @"" );
+ STAssertTrue( [abvc.view.subviews count] == 1, @"" );
+
+ UIView* v = [abvc.view.subviews objectAtIndex:0];
+ STAssertTrue( [v isKindOfClass:[UIButton class]], @"");
}
-( void ) test_ocmock
Please sign in to comment.
Something went wrong with that request. Please try again.