I was using thoughtbot’s paperclip to attach files. I realised that paperclip only provide shoulda macros for test::unit. No cucumber macros? In the end, I got to write it. Its very simple.
The feature is shown here:
Define your steps:
As celerity does not have an attach_file method, I got to write my own. You [...]
For people using the action mailer cache delivery plugin, you can now add the email_spec plugin. The email_spec plugin provides many wonderful helpers to test your emails. Both plugins are now integrated. To use them you need to install both my forks of the plugins:
action_mailer_cache_delivery
email_spec
Install them as plugins following the same instructions from the [...]