public
Description: Shoulda snippets for use with the emacs yasnippets package
Homepage:
Clone URL: git://github.com/rwc9u/yasnippets-shoulda.git
name age message
file .gitignore Fri Oct 16 06:51:16 -0700 2009 Added .gitignore [rwc9u]
file README.markdown Fri Oct 16 06:53:42 -0700 2009 Updated version required. [rwc9u]
directory ruby-mode/ Fri Oct 16 06:59:59 -0700 2009 Updated should_eventually snippet [rwc9u]
README.markdown

These are YASnippet templates for Emacs that aid in doing tasks with Shoulda. Shoulda consists of test macros, assertions, and helpers, that are added on to the Test::Unit framework for Ruby. Most of the snippets have been ported from the Shoulda Textmate Bundle.

These snippets assume the use of YASnippet 0.6.1 or later.

;; example setup
;; location of yasnippets
(add-to-list 'load-path "~/.emacs.d/yasnippet")
(require 'yasnippet)
(require 'dropdown-list)
(setq yas/prompt-functions '( yas/ido-prompt
                              yas/dropdown-prompt
                              yas/completing-prompt))
(yas/initialize)

;; other snippets
(yas/load-directory "~/.emacs.d/yasnippet/snippets")
(yas/load-directory "~/.emacs.d/yasnippets-rails/rails-snippets")
;; said shoulda snippets
(yas/load-directory "~/.emacs.d/yasnippets-shoulda")