Skip to content

Commit

Permalink
Use describe
Browse files Browse the repository at this point in the history
  • Loading branch information
onmyway133 committed Feb 11, 2020
1 parent c63f55c commit 5d28c80
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ import XCTest
import Spek

class GenerateTestCaseTests: SpekTestCase {
override class func makeDescribe() -> Describe {
override class func describe() -> Describe {
Describe("math") {
It("should work") {
XCTAssertTrue(1 + 1 == 2)
Expand All @@ -135,7 +135,7 @@ Spek is distributed using the Swift Package Manager. To install it into a projec
let package = Package(
...
dependencies: [
.package(url: "https://github.com/onmyway133/Spek.git", from: "0.4.0")
.package(url: "https://github.com/onmyway133/Spek.git", from: "0.5.0")
],
...
)
Expand Down
4 changes: 2 additions & 2 deletions Sources/Spek/SpekTestCase.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ public typealias SpekHelperTestCase = XCTestCase
#endif

open class SpekTestCase: SpekHelperTestCase {
open class func makeDescribe() -> Describe {
open class func describe() -> Describe {
return Describe("empty")
}

#if canImport(SpekHelper)

override public class func spekGenerateTestMethodNames() -> [String] {
let describe = Self.makeDescribe()
let describe = Self.describe()

var methods: [Method] = []
generate(
Expand Down
2 changes: 1 addition & 1 deletion Tests/SpekTests/GenerateTestCaseTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import XCTest
import Spek

class GenerateTestCaseTests: SpekTestCase {
override class func makeDescribe() -> Describe {
override class func describe() -> Describe {
var left = 0
var right = 0
return Describe("math") {
Expand Down

0 comments on commit 5d28c80

Please sign in to comment.