RubyFlow : The Ruby Community Blog

Home   Submit   Sign Up   Log In   leaders   Twitter   RSS Feed  
 

jaknowlden — 5 posts

http://gusg.us

You've been missing some shoulda macros for your ActionMailer tests. Yes, the ones that let you say "should_have_to_recipient" or "should_have_subject". The aptly named shoulda_action_mailer has those macros, and few more. It's way incomplete in that you can't expect parts or content types or other special things; but it's a start. Add 'em if you got 'em (more macros that is).
If you're between a rock and a hard place because you can't add Shoulda or RSpec dependencies to your tests, check out this solution using lambdas.
I did a write up on a recent move to Rails 2.2 from 2.1.2. Hopefully it will save someone an hour or two.
Canonical is an ActionMailer extension that acts just like the Postfix utility of the same name. Essentially, Canonical lets you substitute the To, CC, and/or BCC email destinations with one of many replacements via a rule. Rules can be configured per Rails environment. Useful for safe-guarding your testing/staging environment.
Posting about a small write-up I did of a Rails plugin I wrote called Smurf. Smurf automatically minifies any Javascript or CSS you bundle through Rails' built-in :cache mechanism for javascript_include_tag and stylesheet_link_tag.