summaryrefslogtreecommitdiff
path: root/tests/t0200-edit-tests.sh
blob: 1dc125a281d66909966902c5f37d6b6b601320d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/env bash

test_description='Test edit'
cd "$(dirname "$0")"
. ./setup.sh

test_expect_success 'Test "edit" command' '
	"$PASS" init $KEY1 &&
	"$PASS" generate cred1 90 &&
	export FAKE_EDITOR_PASSWORD="big fat fake password" &&
	export EDITOR="$TEST_HOME/fake-editor-change-password.sh" &&
	"$PASS" edit cred1 &&
	[[ $("$PASS" show cred1) == "$FAKE_EDITOR_PASSWORD" ]]
'

test_done
A. Donenfeld2-25/+146 2014-04-15Multiline comment support for keepassx importerLukas Zapletal1-5/+9 2014-04-15find: add find/search commandJason A. Donenfeld6-2/+212 2014-04-15Install bash-completion file to the right place.Jason A. Donenfeld1-1/+1