Skip to content
This repository has been archived by the owner on Feb 7, 2020. It is now read-only.

Commit

Permalink
Remove no longer needed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Collin Ruffenach committed Mar 2, 2014
1 parent 16896f4 commit 0bc2eb8
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions STTweetLabelExample/STTweetLabel Tests/STTweetLabel_Tests.m
Original file line number Diff line number Diff line change
Expand Up @@ -106,20 +106,6 @@ - (void)test_setAndGetAttributesForLink_setAttributes_attributes
XCTAssertEqualObjects(attributes, [_tweetLabel attributesForHotWord:STTweetLink], @"Link attributes should be %@ but %@ was returned instead.", attributes, [_tweetLabel attributesForHotWord:STTweetLink]);
}

- (void)test_setAndGetAttributesForText_setInvalidAttributes_exceptionThrown
{
NSDictionary *attributes = @{NSForegroundColorAttributeName: [UIColor redColor]};

XCTAssertThrowsSpecificNamed([_tweetLabel setAttributes:attributes], NSException, NSInvalidArgumentException, @"Attributes dictionary must contains NSFontAttributeName and NSForegroundColorAttributeName");
}

- (void)test_setAndGetAttributesForHandleHashtagLink_setInvalidAttributes_exceptionThrown
{
NSDictionary *attributes = @{NSForegroundColorAttributeName: [UIColor redColor]};

XCTAssertThrowsSpecificNamed([_tweetLabel setAttributes:attributes hotWord:0], NSException, NSInvalidArgumentException, @"Attributes dictionary must contains NSFontAttributeName and NSForegroundColorAttributeName");
}

- (void)test_setAndGetAttributesForText_setValidAttributes_exceptionNotThrown
{
NSDictionary *attributes = @{NSForegroundColorAttributeName: [UIColor redColor], NSFontAttributeName: [UIFont fontWithName:@"HelveticaNeue" size:14.0]};
Expand Down

0 comments on commit 0bc2eb8

Please sign in to comment.