From a718ddfee1ec76e8d5aa1088206f148ffc53172b Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Wed, 5 Feb 2014 01:46:51 -0500 Subject: Rename bog-citekey-heading New name, `bog-citekey-from-heading-title', provides a clearer indication of what it is doing. --- bog-tests.el | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'bog-tests.el') diff --git a/bog-tests.el b/bog-tests.el index 5b0cd79..524bdd2 100644 --- a/bog-tests.el +++ b/bog-tests.el @@ -44,27 +44,27 @@ (goto-char (point-min)) (should (equal (bog-citekey-at-point) citekey))))) -;; `bog-citekey-heading' +;; `bog-citekey-from-heading-title' -(ert-deftest bog-citekey-heading-current-level () +(ert-deftest bog-citekey-from-heading-title-current-level () (let ((citekey "name2010word")) (with-temp-buffer (insert (format "\n* top level\n\n** %s\n\nsome text\n" citekey)) (org-mode) (show-all) - (should (equal (bog-citekey-heading) citekey))))) + (should (equal (bog-citekey-from-heading-title) citekey))))) -(ert-deftest bog-citekey-heading-in-parent () +(ert-deftest bog-citekey-from-heading-title-in-parent () (let ((citekey "name2010word")) (with-temp-buffer (insert (format "\n* top level\n\n** %s\n\n*** subheading\n\nsome text\n" citekey)) (org-mode) (show-all) - (should (equal (bog-citekey-heading) citekey))))) + (should (equal (bog-citekey-from-heading-title) citekey))))) -(ert-deftest bog-citekey-heading-on-heading () +(ert-deftest bog-citekey-from-heading-title-on-heading () (let ((citekey "name2010word")) (with-temp-buffer (insert (format "\n* top level\n\n** %s\n\nsome text\n" @@ -72,7 +72,7 @@ (org-mode) (show-all) (re-search-backward bog-citekey-format) - (should (equal (bog-citekey-heading) citekey))))) + (should (equal (bog-citekey-from-heading-title) citekey))))) (ert-deftest bog-citekey-action-in-normal-text () (let ((citekey "name2010word")) -- cgit v1.2.3