[rspec-users] Adding before / after blocks to every spec

2008-03-14 Thread Steve Tooke
Folks, I was wondering if someone would be able to help me out with a quandry. I'm trying to write an rspec plugin module for merb that will run all specs within an ActiveRecord (initially) database transaction - to give functionality similar to rails transactional fixtures. Here is the module:

[rspec-users] ActsAsList specs

2007-08-15 Thread Steve Tooke
Hi, How are people specifying models which act_as_list? I'm thinking that it would be possible to check that acts_as_list instance methods have been added to a class using something like this: describe Page, acts_as_list do it should act as a list do Page.ancestors.should

[rspec-users] ActiveRecordAssociationMatcher

2007-08-10 Thread Steve Tooke
I've started to put together a custom expectation matcher for specifying AR associations. Its not quite complete and I really need to put some specs together for it, but I'd appreciate any comments. It lets you spec your associations like this: describe Record do include