Skip to content

Commit

Permalink
Apply corrections made by refined CommaRule on running `Integration…
Browse files Browse the repository at this point in the history
…Tests.testSwiftLintAutoCorrects()`
  • Loading branch information
norio-nomura committed Feb 17, 2016
1 parent 32b98ba commit 01b0616
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/SwiftLintFrameworkTests/ConfigurationTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ class ConfigurationTests: XCTestCase {
private override func filesToLintAtPath(path: String) -> [String] {
switch path {
case "directory": return ["directory/File1.swift", "directory/File2.swift",
"directory/excluded/Excluded.swift", "directory/ExcludedFile.swift"]
"directory/excluded/Excluded.swift", "directory/ExcludedFile.swift"]
case "directory/excluded" : return ["directory/excluded/Excluded.swift"]
case "directory/ExcludedFile.swift" : return ["directory/ExcludedFile.swift"]
default: break
Expand All @@ -145,7 +145,7 @@ class ConfigurationTests: XCTestCase {

func testExcludedPaths() {
let configuration = Configuration(included: ["directory"],
excluded: ["directory/excluded", "directory/ExcludedFile.swift"])!
excluded: ["directory/excluded", "directory/ExcludedFile.swift"])!
let paths = configuration.lintablePathsForPath("", fileManager: TestFileManager())
XCTAssertEqual(["directory/File1.swift", "directory/File2.swift"], paths)
}
Expand Down

0 comments on commit 01b0616

Please sign in to comment.