diff --git a/RxCocoa/Common/CocoaUnits/Driver/Driver.swift b/RxCocoa/Common/CocoaUnits/Driver/Driver.swift index b6855094..0348f631 100644 --- a/RxCocoa/Common/CocoaUnits/Driver/Driver.swift +++ b/RxCocoa/Common/CocoaUnits/Driver/Driver.swift @@ -178,11 +178,9 @@ public struct Drive { This method can be used in unit tests to ensure that driver is using mock schedulers instead of maind schedulers. - To be able to use it, please import RxCocoa using testable attribute - - @testable import RxCocoa + **This shouldn't be used in normal release builds.** */ -func driveOnScheduler(scheduler: SchedulerType, action: () -> ()) { +public func driveOnScheduler(scheduler: SchedulerType, action: () -> ()) { let originalObserveOnScheduler = driverObserveOnScheduler let originalSubscribeOnScheduler = driverSubscribeOnScheduler diff --git a/RxExample/RxExample-iOSTests/RxExample_iOSTests.swift b/RxExample/RxExample-iOSTests/RxExample_iOSTests.swift index b8a302ec..0ec5d1a5 100644 --- a/RxExample/RxExample-iOSTests/RxExample_iOSTests.swift +++ b/RxExample/RxExample-iOSTests/RxExample_iOSTests.swift @@ -10,7 +10,7 @@ import XCTest import RxSwift import RxTests -@testable import RxCocoa +import RxCocoa let resolution: NSTimeInterval = 0.2 // seconds