         }
     }
     
-    
     func test_Observableに包み込めば監視出来る() {
         wait { done in
             var cnt = 0

extension XCTestCase {
    
    typealias DoneStatement = () -> Void
    func wait(till num: Int = 1, _ block: (() -> Void) -> (() -> Void)) {
        self.wait(till: num, message: "", timeout: 10, block)
        
    }
    func wait(till num: Int, message: String, timeout: NSTimeInterval, _ block: (() -> Void) -> (() -> Void)) {
        
        let expectation = self.expectationWithDescription(message)
        let queue = dispatch_queue_create("XCTestCase.wait", nil)

        
        completion = block(done)
        
        self.waitForExpectationsWithTimeout(timeout) { (error) -> Void in
            completion?()
            return
        }
    }
}

