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

test_description='Test edit'
. ./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
eletions'>-1112/+1120 2009-08-11Update changelogRené 'Necoro' Neumann1-0/+1 2009-08-10Fixed pt_BR translationAlberto Federman Neto1-2/+5 2009-08-10Add credits for translationRené 'Necoro' Neumann2-0/+2