depricate whatnow
[mmh] / test / tests / whatnow / test-cd
index 6bc2040..05bbd76 100644 (file)
@@ -1,7 +1,7 @@
 #!/bin/sh
 ######################################################
 #
-# Test that whatnow's "ls" copes with directory names
+# Test that whatnow's "cd" copes with directory names
 # which have spaces and quotes in them (see bug #23319)
 #
 ######################################################
@@ -24,11 +24,15 @@ $SPDIR
 EOF
 
 cat > $expectederr <<EOF
+whatnow: whatnow is deprecated. Consider switching to whatnow2.
 EOF
 
+# create a draft message
+comp -whatnow true
+
 # ||true to ignore whatnow's exit status
 # watch the quoting -- shell and printf and then the shell run inside whatnow
-printf "cd $MH_TEST_DIR/foo\\\\'s\\\\ bar\npwd\n" | whatnow -noedit -prompt '' 2> "$actualerr" > "$actual" || true
+printf "cd $MH_TEST_DIR/foo\\\\'s\\\\ bar\npwd\n" | whatnow -prompt '' 2> "$actualerr" > "$actual" || true
 
 diff -u $expectederr $actualerr
 diff -u $expected $actual