Permalink
Browse files

fixed unit test

  • Loading branch information...
leogdion committed Oct 20, 2016
1 parent d25001e commit e8ff9e420934193b255e6a1c9893bd76567f72e0
Showing with 12 additions and 11 deletions.
  1. +8 −8 framework/VCS.swift
  2. +4 −3 tests/Controllers/ApplicationPathDataSourceTest.swift
View
@@ -3,16 +3,16 @@
let VCS_TYPE = "git"
let VCS_BASENAME = "speculid"
let VCS_UUID: String? = "b6fd659a7d2088d5420f962a307b1f7f7e5d0604"
let VCS_NUM: Int = 425
let VCS_DATE = "2016-10-19T21:21:28Z"
let VCS_BRANCH: String = "feature/issue-08-auto-paths"
let VCS_NUM: Int = 426
let VCS_DATE = "2016-10-20T05:40:19Z"
let VCS_BRANCH: String = "release/1.0.0"
let VCS_TAG: String? = "1.0.0-beta2"
let VCS_TICK: Int? = 2
let VCS_EXTRA: String? = "2"
let VCS_TICK: Int? = 3
let VCS_EXTRA: String? = "4"
let VCS_ACTION_STAMP: String? = "2016-10-19T21:21:28Z!leogdion@brightdigit.com"
let VCS_FULL_HASH: String = "3f57444a2ec6cf9ab301089f62ee70d429914fb3"
let VCS_SHORT_HASH: String = "3f57444"
let VCS_ACTION_STAMP: String? = "2016-10-20T05:40:19Z!leogdion@brightdigit.com"
let VCS_FULL_HASH: String = "d25001ea0d50fad725a068ecd3e4744d85a18e4f"
let VCS_SHORT_HASH: String = "d25001e"
let VCS_WC_MODIFIED: Bool = true
@@ -10,11 +10,12 @@ import XCTest
@testable import Speculid
public struct MockApplicationPathDataSource : ApplicationPathDataSource {
public func applicationPaths(_ closure: @escaping (ApplicationPathDictionary) -> Void) {
closure(self.applicationPaths)
}
public let applicationPaths : ApplicationPathDictionary
public func applicationPaths(oldPaths: ApplicationPathDictionary?) -> ApplicationPathDictionary {
return self.applicationPaths
}
}
class ApplicationPathDataSourceTest: XCTestCase {

0 comments on commit e8ff9e4

Please sign in to comment.