Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[test] Test rm command
  • Loading branch information
mmalecki committed Feb 12, 2012
1 parent 1b7136e commit 6fb5aa5
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions test/rm-test
@@ -0,0 +1,20 @@
#!/bin/sh

. test/helpers

describe "give/rm"

export give_dir="/tmp/give-$RANDOM"

mkdir -p $give_dir/{installed,src}/master
touch $give_dir/{installed,src}/master/file

./give.sh rm master

[ ! -d "$give_dir/src/master" ]
spec "give should delete source directory"

[ ! -d "$give_dir/installed/master" ]
spec "give should delete install directory"

rm -rf "$give_dir"

0 comments on commit 6fb5aa5

Please sign in to comment.