Sha256: b20c588bdd1761d7c74d27549bae8463e2c5307a181a90112b85427f1e3dcc6c

Contents?: true

Size: 658 Bytes

Versions: 6

Compression:

Stored size: 658 Bytes

Contents

#import "SPTSpec.h"
#import "SPTExampleGroup.h"
#import "SPTExample.h"

@implementation SPTSpec

- (id)init {
  self = [super init];
  if (self) {
    self.rootGroup = [[SPTExampleGroup alloc] init];
    self.rootGroup.root = self.rootGroup;
    self.groupStack = [NSMutableArray arrayWithObject:self.rootGroup];
  }
  return self;
}

- (SPTExampleGroup *)currentGroup {
  return [self.groupStack lastObject];
}

- (void)compile {
  self.compiledExamples = [self.rootGroup compileExamplesWithNameStack:@[]];
  for (SPTExample *example in self.compiledExamples) {
    if (example.focused) {
      self.hasFocusedExamples = YES;
      break;
    }
  }
}

@end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
second_curtain-0.6.0 Demo/Pods/Specta/src/SPTSpec.m
second_curtain-0.5.0 Demo/Pods/Specta/src/SPTSpec.m
second_curtain-0.4.0 Demo/Pods/Specta/src/SPTSpec.m
second_curtain-0.3.0 Demo/Pods/Specta/src/SPTSpec.m
second_curtain-0.2.4 Demo/Pods/Specta/src/SPTSpec.m
second_curtain-0.2.3 Demo/Pods/Specta/src/SPTSpec.m