19 lines
543 B
Swift
19 lines
543 B
Swift
//
|
|
// StubFunctionThenCallRealImplementationTrait.swift
|
|
// Cuckoo
|
|
//
|
|
// Created by Filip Dolnik on 27.06.16.
|
|
// Copyright © 2016 Brightify. All rights reserved.
|
|
//
|
|
|
|
public protocol StubFunctionThenCallRealImplementationTrait: BaseStubFunctionTrait {
|
|
/// Invokes real implementation when invoked.
|
|
func thenCallRealImplementation() -> Self
|
|
}
|
|
|
|
public extension StubFunctionThenCallRealImplementationTrait {
|
|
func thenCallRealImplementation() -> Self {
|
|
stub.appendAction(.CallRealImplementation)
|
|
return self
|
|
}
|
|
} |