Resurrect restore test and updates

This commit is contained in:
Bruno Sutic
2015-02-22 21:53:33 +01:00
parent 66916085d9
commit 9cabda7c71
6 changed files with 92 additions and 11 deletions

View File

@ -9,22 +9,16 @@ create_tmux_test_environment_and_save() {
set_tmux_conf_helper<<-HERE
run-shell '~/.tmux/plugins/tmux-resurrect/resurrect.tmux'
HERE
set_screen_dimensions
set_screen_dimensions_helper
$CURRENT_DIR/helpers/create_and_save_tmux_test_environment.exp
}
last_save_file_incorrect() {
diff tests/fixtures/save_file.txt "${HOME}/.tmux/resurrect/last"
[ $? -ne 0 ]
}
main() {
install_tmux_resurrect_helper
create_tmux_test_environment_and_save
if last_save_file_incorrect; then
fail_helper "Saved file not correct"
exit_helper
if last_save_file_differs_helper "tests/fixtures/save_file.txt"; then
fail_helper "Saved file not correct (initial save)"
fi
exit_helper
}