[rspec-users] dumping data to yaml in specs

Scott Taylor mailing_lists at railsnewbie.com
Thu Apr 12 01:33:37 EDT 2007

I'm wondering whether I could dump out an object to yaml if a certain  
spec fails.  I believe you can do this sort of thing in test unit.


hash_one.should == hash_two if_failed? hash_two.to_yaml


More information about the rspec-users mailing list