maxim / blog
- Source
- Commits
- Network (0)
- Issues (0)
- Downloads (0)
- Wiki (1)
- Graphs
-
Tree:
bb51f4e
blog / 2009-04-29-announcing-shmacros.textile
I use shoulda constantly as it is my favorite testing framework. I figured the custom macros I write may prove useful to others, thus I released them as a plugin called shmacros. As of now it includes the following methods.
- should_accept_nested_attributes_for
- should_act_as_taggable_on
- should_be
- should_callback
- should_delegate
should_have_attached_file(removed in new revision)- should_validate_associated
It’s best to have Mocha installed as some of the macros rely on its presence.
~/dev/myapp% sudo gem install mocha ~/dev/myapp% script/plugin install git://github.com/maxim/shmacros.git
