Skip to content

Commit 55805a0

Browse files
authored
Update DangerSwiftLintTests.swift
Make sure directory is the last parameter passed to swiftlint
1 parent 96506d9 commit 55805a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/DangerTests/SwiftLint/DangerSwiftLintTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ final class DangerSwiftLintTests: XCTestCase {
268268
XCTAssertNotNil(swiftlintCommand)
269269
XCTAssertEqual(swiftlintCommand!.environmentVariables.count, 0)
270270
XCTAssertFalse(swiftlintCommand!.environmentVariables.values.contains { $0.contains("Tests/SomeFile.swift") })
271-
XCTAssertTrue(swiftlintCommand!.arguments.contains("--path \"Tests\""))
271+
XCTAssertEqual(swiftlintCommand!.arguments.last, directory))
272272
}
273273

274274
func testFiltersOnSwiftFiles() {

0 commit comments

Comments
 (0)