Kiwi Custom Matcher for Date comparing.
pod 'AZNSDateKiwiMatcher'
SPEC_BEGIN(ExampleSpec)
registerMatchers(@"AZ");
describe(@"Custom Matcher", ^{
NSDate *aDate = [NSDate date];
NSDate *bDate = [[NSDate date] dateByAddingTimeInterval:1];
it(@"could equal ignoring time to Date", ^{
[[aDate should] equalToDateIgnoringTime:bDate];// pass
});
it(@"doesn't equal date", ^{
[[aDate should] equal:bDate];// fails
});
});
SPEC_END
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
MIT