find_version
FileUtils.mkdir_p('pkg')
+desc "run tests in batch mode"
+task :tests do
+ $EMACS=ENV["EMACS"] || "emacs"
+ sh "#{$EMACS} -Q -L . -l yasnippet-tests.el -nw --batch -e yas/ert"
+end
desc "convert some textmate bundles to yasnippets"
task :convert_bundles do
;;; Helpers
;;;
+(defun yas/ert ()
+ (interactive)
+ (with-temp-buffer
+ (flet ((message (&rest args)
+ (declare (ignore args))
+ nil))
+ (ert t (buffer-name (current-buffer)))
+ (princ (buffer-string)))))
+
(defun yas-should-expand (keys-and-expansions)
(dolist (key-and-expansion keys-and-expansions)