We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e0ed600 commit 388d33cCopy full SHA for 388d33c
tests/test_project_cd.sh
@@ -40,15 +40,17 @@ test_without_project () {
40
}
41
42
test_space_in_path () {
43
- old_project_home="$PROJECT_HOME"
+ (
44
+ set -x
45
+ set -e
46
PROJECT_HOME="$PROJECT_HOME/with spaces"
47
mkdir -p "$PROJECT_HOME"
48
mkproject "myproject" >/dev/null 2>&1
- cd $TMPDIR
49
+ cd "$WORKON_HOME"
50
cdproject
- assertSame "$PROJECT_HOME/myproject" "$(pwd)"
- deactivate
51
- PROJECT_HOME="$old_project_home"
+ [ "$PROJECT_HOME/myproject" == "$(pwd)" ]
52
+ )
53
+ assertTrue "Did not cd to project directory" $?
54
55
56
0 commit comments