Permalink
Browse files

Added empty questions & test to topic

  • Loading branch information...
grosshei committed Nov 13, 2012
1 parent ee57e6d commit b693c03c3a894504586864ca91aafc7e8b8238c6
Showing with 10 additions and 0 deletions.
  1. +5 −0 BrowseOverflowTests/TopicTests.m
  2. +1 −0 Topic.h
  3. +4 −0 Topic.m
@@ -31,4 +31,9 @@ -(void) testThatTopicHasATag{
STAssertEqualObjects(topic.tag, @"iphone", @"Topics need to have tags");
}
+-(void)testForAListOfQuestions{
+ STAssertTrue([[topic recentQuestions] isKindOfClass:[NSArray class]],
+ @"Topics should provide a list of recent questions");
+}
+
@end
View
@@ -16,5 +16,6 @@
@property (readonly) NSString *tag;
-(id)initWithName:(NSString *)newName tag:newTag;
+-(NSArray *)recentQuestions;
@end
View
@@ -20,4 +20,8 @@ -(id)initWithName:(NSString *)newName tag:newTag{
return self;
}
+-(NSArray *)recentQuestions{
+ return [NSArray array];
+}
+
@end

0 comments on commit b693c03

Please sign in to comment.