forked from toolshed/abra
@ -22,14 +22,16 @@ teardown(){
|
||||
}
|
||||
|
||||
@test "retrieve recipe if missing" {
|
||||
run rm -rf "$ABRA_DIR/recipes/$TEST_RECIPE"
|
||||
assert_success
|
||||
assert_not_exists "$ABRA_DIR/recipes/$TEST_RECIPE"
|
||||
if [[ -d "$ABRA_DIR/recipe/custom-html" ]]; then
|
||||
run rm -rf "$ABRA_DIR/recipes/custom-html"
|
||||
assert_success
|
||||
assert_not_exists "$ABRA_DIR/recipes/custom-html"
|
||||
fi
|
||||
|
||||
run $ABRA recipe lint "$TEST_RECIPE"
|
||||
run $ABRA recipe lint custom-html
|
||||
assert_success
|
||||
|
||||
assert_exists "$ABRA_DIR/recipes/$TEST_RECIPE"
|
||||
assert_exists "$ABRA_DIR/recipes/custom-html"
|
||||
}
|
||||
|
||||
@test "bail if unstaged changes and no --chaos" {
|
||||
|
||||
Reference in New Issue
Block a user