Add assertion via shell command to testCurrentDirectory_CanChange.

This commit is contained in:
Kare Morstol
2015-08-05 21:12:37 +02:00
parent 6f967c0683
commit 60e98f3ba5
2 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -117,6 +117,7 @@
BA2E3B231B5C34DD001ED175 /* SwiftShellTests */ = {
isa = PBXGroup;
children = (
BAE03DBA1B5C6B7200D731A0 /* Context_Tests.swift */,
BA2E3B391B5C3635001ED175 /* Command_Tests.swift */,
BA2E3B3A1B5C3635001ED175 /* FileHandle_Tests.swift */,
BA2E3B3B1B5C3635001ED175 /* Files_Tests.swift */,
@@ -128,7 +129,6 @@
BA2E3B421B5C3635001ED175 /* XCTestCase_Additions.swift */,
BA2E3B3D1B5C3635001ED175 /* shorttext.txt */,
BA2E3B261B5C34DD001ED175 /* Info.plist */,
BAE03DBA1B5C6B7200D731A0 /* Context_Tests.swift */,
);
path = SwiftShellTests;
sourceTree = "<group>";
+1 -2
View File
@@ -19,7 +19,6 @@ class Context_Tests: XCTestCase {
main.currentdirectory = "/tmp"
XCTAssertEqual( main.currentdirectory, "/private/tmp" )
// TODO: XCTAssertEqual( $("pwd"), "/tmp" )
XCTAssertEqual( main.$("/bin/pwd"), "/tmp\n" )
}
}