[rspec-users] Shoulda

Andy Freeman lists at ruby-forum.com
Wed Oct 1 10:01:59 EDT 2008

I updated the gist posting.  All of the macros should be functional now
and have cleaned up describe blocks.


Andy Freeman wrote:
> It is a bit ugly but here is an initial port of the Shoulda ActiveRecord 
> macros:
> http://gist.github.com/14050
> I did not try running ALL of the macros, but most of them.  Before going 
> too far with it, I would appreciate some recommendations as to how to 
> improve the flow.  The Shoulda version has a different feel to it since 
> the assertions cause the code to die early.  Whereas the RSpec 
> conversion I did mostly wrap each should call in its own it block.
> Thanks for the help!  I learned a lot from this exercise!
> Andy
Posted via http://www.ruby-forum.com/.

More information about the rspec-users mailing list