Change suffix of test files to comply with test-runner.sh defaults

This commit is contained in:
2014-08-21 02:00:06 +01:00
parent 119cf76bff
commit 71bc4d5a44
10 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
#! /usr/bin/env bash
source "../../test-helper.sh"
source "../../../src/lib/internals/register-action.sh"
#
# dotify-register-action() tests
#
# Registering an action.
dotify-register-action "link"
assert 'echo ${DOTIFY_ACTIONS[@]}' "link"
unset DOTIFY_ACTIONS
# Registering multiple actions.
dotify-register-action "link"
dotify-register-action "git"
assert 'echo ${DOTIFY_ACTIONS[@]}' "link git"
unset DOTIFY_ACTIONS
# Registering the same action multiple times.
dotify-register-action "link"
dotify-register-action "link"
assert 'echo ${DOTIFY_ACTIONS[@]}' "link"
assert_raises 'dotify-register-action "link"' 1
unset DOTIFY_ACTIONS
assert_end "dotify-register-action() tests"