Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: e04b482ab4
Fetching contributors…

Cannot retrieve contributors at this time

37 lines (28 sloc) 0.622 kb
#import "TestHelper.h"
#import <objc/runtime.h>
static NSString
*foo = @"foo"
, *bar = @"bar"
;
SpecBegin(_FailingSpecTest)
describe(@"group", ^{
it(@"example 1", ^{
expect(foo).toEqual(@"foo");
});
it(@"example 2", ^{
expect(bar).toEqual(@"bar");
});
});
SpecEnd
@interface FailingSpecTest : SenTestCase; @end
@implementation FailingSpecTest
- (void)testFailingSpec {
foo = @"not foo";
bar = @"not bar";
SenTestSuiteRun *result = RunSpec(_FailingSpecTestSpec);
expect([result failureCount]).toEqual(2);
expect([result hasSucceeded]).toEqual(NO);
foo = @"foo";
bar = @"bar";
}
@end
Jump to Line
Something went wrong with that request. Please try again.