test-ob-exp.el 923 B

123456789101112131415161718192021222324252627282930313233343536
  1. ;;; test-ob-exp.el
  2. ;; Copyright (c) 2010 Eric Schulte
  3. ;; Authors: Eric Schulte
  4. ;; Released under the GNU General Public License version 3
  5. ;; see: http://www.gnu.org/licenses/gpl-3.0.html
  6. ;;;; Comments:
  7. ;; Template test file for Org-mode tests
  8. ;;; Code:
  9. (require 'org-test)
  10. ;;; Tests
  11. (ert-deftest test-ob-exp/org-babel-exp-src-blocks/w-no-headers ()
  12. "Testing export without any headlines in the org-mode file."
  13. (org-test-in-example-file org-test-no-header-example-file-name
  14. ;; export the file to html
  15. (org-export-as-html nil)
  16. ;; should create a .html file
  17. (should (file-exists-p (concat
  18. (file-name-sans-extension
  19. org-test-no-header-example-file-name)
  20. ".html")))
  21. ;; should not create a file with "::" appended to it's name
  22. (should-not (file-exists-p
  23. (concat org-test-no-header-example-file-name "::")))))
  24. (provide 'test-ob-exp)
  25. ;;; test-ob-exp.el ends here