typos fixed

pull/148/head
Josh Rabinowitz 6 years ago
parent 80797bcd46
commit b626faf472

@ -72,7 +72,7 @@ function teardown {
# https://github.com/sobolevn/git-secret/issues/85 task 1
if [[ "$BATS_RUNNING_FROM_GIT" -eq 1 ]]; then
skip "this test is skiped while 'git commmit'"
skip "this test is skipped while 'git commmit'"
fi
# Preparations:
@ -105,7 +105,7 @@ function teardown {
@test "run 'add' for relative path" {
if [[ "$BATS_RUNNING_FROM_GIT" -eq 1 ]]; then
skip "this test is skiped while 'git commmit'"
skip "this test is skipped while 'git commmit'"
fi
# Prepations:

@ -38,7 +38,7 @@ function teardown {
}
@test "run 'cat' with wrong filename" {
run git secret reveal -d "$TEST_GPG_HOMEDIR" -p "$password" NO_SUCH_FILE
run git secret cat -d "$TEST_GPG_HOMEDIR" -p "$password" NO_SUCH_FILE
[ "$status" -eq 2 ]
}

@ -35,7 +35,7 @@ function teardown {
# https://github.com/sobolevn/git-secret/issues/83
if [[ "$BATS_RUNNING_FROM_GIT" -eq 1 ]]; then
skip "this test is skiped while 'git commmit'"
skip "this test is skipped while 'git commmit'"
fi
# Preparations

@ -55,11 +55,11 @@ function _has_line {
[ "$other_files" -eq 0 ]
# Both files should be present:
local first_enctypted_file=$(_get_encrypted_filename $FIRST_FILE)
local second_enctypted_file=$(_get_encrypted_filename $SECOND_FILE)
local first_encrypted_file=$(_get_encrypted_filename $FIRST_FILE)
local second_encrypted_file=$(_get_encrypted_filename $SECOND_FILE)
[ -f "$first_enctypted_file" ]
[ -f "$second_enctypted_file" ]
[ -f "$first_encrypted_file" ]
[ -f "$second_encrypted_file" ]
}
@ -74,11 +74,11 @@ function _has_line {
[ "$second_line" -eq 1 ]
# Both files should be present:
local first_enctypted_file=$(_get_encrypted_filename $FIRST_FILE)
local second_enctypted_file=$(_get_encrypted_filename $SECOND_FILE)
local first_encrypted_file=$(_get_encrypted_filename $FIRST_FILE)
local second_encrypted_file=$(_get_encrypted_filename $SECOND_FILE)
[ -f "$first_enctypted_file" ]
[ -f "$second_enctypted_file" ]
[ -f "$first_encrypted_file" ]
[ -f "$second_encrypted_file" ]
}
@ -101,8 +101,8 @@ function _has_line {
local mapping_contains=$(_has_line "$file_in_folder")
[ "$mapping_contains" -eq 1 ]
local enctypted_file=$(_get_encrypted_filename $file_in_folder)
[ -f "$enctypted_file" ]
local encrypted_file=$(_get_encrypted_filename $file_in_folder)
[ -f "$encrypted_file" ]
# Cleaning up:
rm -r "$folder"
@ -118,11 +118,11 @@ function _has_line {
local mapping_contains=$(_has_line "$SECOND_FILE")
[ "$mapping_contains" -eq 1 ]
local first_enctypted_file=$(_get_encrypted_filename $FIRST_FILE)
local second_enctypted_file=$(_get_encrypted_filename $SECOND_FILE)
local first_encrypted_file=$(_get_encrypted_filename $FIRST_FILE)
local second_encrypted_file=$(_get_encrypted_filename $SECOND_FILE)
echo "$output"
echo "$first_enctypted_file and $second_enctypted_file"
echo "$first_encrypted_file and $second_encrypted_file"
[ -f "$first_enctypted_file" ]
[ ! -f "$second_enctypted_file" ]
[ -f "$first_encrypted_file" ]
[ ! -f "$second_encrypted_file" ]
}

@ -126,7 +126,7 @@ function teardown {
@test "run 'tell' in subfolder" {
if [[ "$BATS_RUNNING_FROM_GIT" -eq 1 ]]; then
skip "this test is skiped while 'git commmit'"
skip "this test is skipped while 'git commmit'"
fi
# Preparations

@ -34,7 +34,7 @@ function teardown {
@test "run 'whoknows' in subfolder" {
if [[ "$BATS_RUNNING_FROM_GIT" -eq 1 ]]; then
skip "this test is skiped while 'git commmit'"
skip "this test is skipped while 'git commmit'"
fi
# Preparations:

@ -8,7 +8,7 @@ if [[ "$BRANCH_NAME" != '(no branch)' ]]; then
unset GIT_WORK_TREE
# Set marker, that we running tests from `git commit`,
# so some tests will be skiped. It is done, because `git rev-parse`
# so some tests will be skipped. It is done, because `git rev-parse`
# is not working when running from pre-commit hook.
export BATS_RUNNING_FROM_GIT=1

Loading…
Cancel
Save