Skip to content

Instantly share code, notes, and snippets.

@lukeredpath
Created September 7, 2012 15:18
Show Gist options
  • Select an option

  • Save lukeredpath/3667088 to your computer and use it in GitHub Desktop.

Select an option

Save lukeredpath/3667088 to your computer and use it in GitHub Desktop.
SenTestHelpers.h
#import "SenTestHelpers.h"
DEFINE_TEST_CASE(ExampleTestCase)
- (void)testItWorksProperly
{
expect(@"foo").to.equal(@"foo");
}
END_TEST_CASE
#define DEFINE_TEST_CASE_WITH_SUBCLASS(name, subclass) \
@interface name : subclass \
@end \
@implementation name \
#define DEFINE_TEST_CASE(name) DEFINE_TEST_CASE_WITH_SUBCLASS(name, SenTestCase)
#define END_TEST_CASE \
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment