Skip to content

Commit

Permalink
Merge pull request Quick#488 from briancroom/fix_afterSuite
Browse files Browse the repository at this point in the history
Fix the test counting used to determine when to execute `afterSuite` hooks
  • Loading branch information
jeffh committed Feb 19, 2016
2 parents bc67084 + 1150c32 commit 0dd17be
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Sources/Quick/Example.swift
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ final public class Example: NSObject {

numberOfExamplesRun += 1

if !world.isRunningAdditionalSuites && numberOfExamplesRun >= world.exampleCount {
if !world.isRunningAdditionalSuites && numberOfExamplesRun >= world.includedExampleCount {
world.suiteHooks.executeAfters()
}
}
Expand Down
4 changes: 2 additions & 2 deletions Sources/Quick/World.swift
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,8 @@ final internal class World: NSObject {
return sharedExamples[name]!
}

internal var exampleCount: Int {
return allExamples.count
internal var includedExampleCount: Int {
return includedExamples.count
}

internal var beforesCurrentlyExecuting: Bool {
Expand Down

0 comments on commit 0dd17be

Please sign in to comment.