Skip to content

Commit

Permalink
Fix Swift test template naming for Xcode 9
Browse files Browse the repository at this point in the history
  • Loading branch information
abdullahselek committed Oct 5, 2017
1 parent 697b850 commit e084b51
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@ import Nimble

//@testable import YOUR_MODULE_NAME

class ___FILEBASENAMEASIDENTIFIER___InteractorTests: QuickSpec {
class ___VARIABLE_viperModuleName___InteractorTests: QuickSpec {

override func spec() {
var view: ___FILEBASENAMEASIDENTIFIER___ViewController!
let interactor = ___FILEBASENAMEASIDENTIFIER___Interactor()
var presenter: ___FILEBASENAMEASIDENTIFIER___Presenter!
var view: ___VARIABLE_viperModuleName___ViewController!
let interactor = ___VARIABLE_viperModuleName___Interactor()
var presenter: ___VARIABLE_viperModuleName___Presenter!

beforeSuite {
let router = ___FILEBASENAMEASIDENTIFIER___Router()
view = ___FILEBASENAMEASIDENTIFIER___Router.createModule() as? ___FILEBASENAMEASIDENTIFIER___ViewController
presenter = ___FILEBASENAMEASIDENTIFIER___Presenter(interface: view,
let router = ___VARIABLE_viperModuleName___Router()
view = ___VARIABLE_viperModuleName___Router.createModule() as? ___VARIABLE_viperModuleName___ViewController
presenter = ___VARIABLE_viperModuleName___Presenter(interface: view,
interactor: interactor,
router: router)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@ import Nimble

//@testable import YOUR_MODULE_NAME

class ___FILEBASENAMEASIDENTIFIER___PresenterTests: QuickSpec {
class ___VARIABLE_viperModuleName___PresenterTests: QuickSpec {

override func spec() {
describe("___FILEBASENAMEASIDENTIFIER___Presenter Tests") {
describe("___VARIABLE_viperModuleName___Presenter Tests") {
describe(".init(interface:interactor:router:)", {
var presenter: ___FILEBASENAMEASIDENTIFIER___Presenter!
var presenter: ___VARIABLE_viperModuleName___Presenter!

beforeEach {
presenter = ___FILEBASENAMEASIDENTIFIER___Presenter(interface: ___FILEBASENAMEASIDENTIFIER___Router.createModule() as?___FILEBASENAMEASIDENTIFIER___ViewController,
interactor: ___FILEBASENAMEASIDENTIFIER___Interactor(),
router: ___FILEBASENAMEASIDENTIFIER___Router())
presenter = ___VARIABLE_viperModuleName___Presenter(interface: ___VARIABLE_viperModuleName___Router.createModule() as?___VARIABLE_viperModuleName___ViewController,
interactor: ___VARIABLE_viperModuleName___Interactor(),
router: ___VARIABLE_viperModuleName___Router())
}

it("successfully initialises", closure: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ import Nimble

//@testable import YOUR_MODULE_NAME

class ___FILEBASENAMEASIDENTIFIER___RouterTests: QuickSpec {
class ___VARIABLE_viperModuleName___RouterTests: QuickSpec {

override func spec() {
describe("___FILEBASENAMEASIDENTIFIER___Router Tests") {
describe("___VARIABLE_viperModuleName___Router Tests") {
describe(".createModule()", {
var view: ___FILEBASENAMEASIDENTIFIER___ViewController!
var view: ___VARIABLE_viperModuleName___ViewController!

beforeEach {
view = ___FILEBASENAMEASIDENTIFIER___Router.createModule() as? ___FILEBASENAMEASIDENTIFIER___ViewController
view = ___VARIABLE_viperModuleName___Router.createModule() as? ___VARIABLE_viperModuleName___ViewController
}

it("should create orders module successfully", closure: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ import Nimble

//@testable import YOUR_MODULE_NAME

class ___FILEBASENAMEASIDENTIFIER___ViewControllerTests: QuickSpec {
class ___VARIABLE_viperModuleName___ViewControllerTests: QuickSpec {

override func spec() {
describe("___FILEBASENAMEASIDENTIFIER___ViewController Tests") {
var view: ___FILEBASENAMEASIDENTIFIER___ViewController!
describe("___VARIABLE_viperModuleName___ViewController Tests") {
var view: ___VARIABLE_viperModuleName___ViewController!

beforeSuite {
view = ___FILEBASENAMEASIDENTIFIER___Router.createModule() as? ___FILEBASENAMEASIDENTIFIER___ViewController
view = ___VARIABLE_viperModuleName___Router.createModule() as? ___VARIABLE_viperModuleName___ViewController
}

context("when created by router", {
Expand Down

0 comments on commit e084b51

Please sign in to comment.