From e2c939cb8e99d6c1a58982ec844caf1729cec6f8 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Tue, 18 Aug 2020 23:32:07 -0700 Subject: [PATCH] Rename test setup function MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I’d like to rename other functions as well, but especially with the commands and variables I’m afraid of breaking configurations. I don’t have to worry about that so much yet with the test functions. --- tests/git-auto-commit-mode-tests.el | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/tests/git-auto-commit-mode-tests.el b/tests/git-auto-commit-mode-tests.el index 5afb106..8f9dfdd 100644 --- a/tests/git-auto-commit-mode-tests.el +++ b/tests/git-auto-commit-mode-tests.el @@ -27,7 +27,7 @@ (require 'buttercup) (require 'git-auto-commit-mode) -(defun gas-test-setup-git () +(defun git-auto-commit-tests-setup-git () (shell-command "git init") (shell-command "git config user.email user@example.com") (shell-command "git config user.name \"User Example\"")) @@ -41,7 +41,7 @@ (default-directory temp-dir)) (unwind-protect (progn - (gas-test-setup-git) + (git-auto-commit-tests-setup-git) (let ((buffer (find-file-noselect temp-file))) (with-current-buffer buffer (git-auto-commit-mode) @@ -59,7 +59,7 @@ (default-directory temp-dir)) (unwind-protect (progn - (gas-test-setup-git) + (git-auto-commit-tests-setup-git) (let ((buffer (find-file-noselect temp-file))) (with-current-buffer buffer (git-auto-commit-mode) @@ -76,7 +76,7 @@ (default-directory temp-dir)) (unwind-protect (progn - (gas-test-setup-git) + (git-auto-commit-tests-setup-git) (let ((buffer (find-file-noselect temp-file))) (with-current-buffer buffer (git-auto-commit-mode) @@ -93,7 +93,7 @@ (mkdir (expand-file-name "test" temp-dir)) (unwind-protect (progn - (gas-test-setup-git) + (git-auto-commit-tests-setup-git) (let ((buffer (find-file-noselect temp-file))) (with-current-buffer buffer (git-auto-commit-mode) @@ -109,7 +109,7 @@ (default-directory temp-dir)) (unwind-protect (progn - (gas-test-setup-git) + (git-auto-commit-tests-setup-git) (let ((buffer (find-file-noselect temp-file))) (with-current-buffer buffer (git-auto-commit-mode) @@ -126,7 +126,7 @@ (mkdir (expand-file-name "[test]-test" temp-dir)) (unwind-protect (progn - (gas-test-setup-git) + (git-auto-commit-tests-setup-git) (let ((buffer (find-file-noselect temp-file))) (with-current-buffer buffer (git-auto-commit-mode) @@ -142,7 +142,7 @@ (default-directory temp-dir)) (unwind-protect (progn - (gas-test-setup-git) + (git-auto-commit-tests-setup-git) (let ((buffer (find-file-noselect temp-file))) (with-current-buffer buffer (git-auto-commit-mode) @@ -158,7 +158,7 @@ (default-directory temp-dir)) (unwind-protect (progn - (gas-test-setup-git) + (git-auto-commit-tests-setup-git) (let ((buffer (find-file-noselect temp-file))) (with-current-buffer buffer (git-auto-commit-mode)