I wrote some quick notes up on a custom matcher I wrote around a pattern that I am using constantly. http://smartic.us/2007/11/26/rspec-matcher-for-active-record-associations You could use it as a custom matcher tutorial for the uninitiated or as a possible solution for validations specs for the more advanced. Or you could use it to school me, and explain why my code sucks :) bryanl
Maybe Matching Threads
- Custom Matcher and NAME NOT GENERATED annoyance
- [Screencast ANN] Smarticast: ActiveRecord Grab Bag
- get() method in custom expectation matcher?
- Sharing: dont_repeat_yourself plugin custom RSpec matcher
- RSpec, shoulda-matchers and Rails model attributes validations