Browse Source

test: small changes to ensure proper setup... passing all tests

Eric Schulte 13 years ago
parent
commit
20401ecd6d
1 changed files with 3 additions and 2 deletions
  1. 3 2
      testing/lisp/test-ob-lilypond.el

+ 3 - 2
testing/lisp/test-ob-lilypond.el

@@ -2,8 +2,9 @@
   (set-buffer (get-buffer-create "test-ob-lilypond.el"))
   (setq ly-here
         (file-name-directory
-         (buffer-file-name
-          (current-buffer)))))
+         (or load-file-name (buffer-file-name)))))
+
+(require 'ob-lilypond)
  
 (ert-deftest ob-lilypond/assert ()
   (should t))