bmabey/email-spec — pull request #125 by southpolesteve (2012-12-19 21:11:58+00:00)
Title: If a helper is passed an object that responds to email, call that method on the object.

In many places, my rspec request tests are calling something like:

```
unread_emails_for(user.email)
```

Seems to me it would be nice if the email-spec helpers recognized an object responds to `email`, and in that case called that method internally. It would be nice to write all my specs as:

```
unread_emails_for(user)
```

Code attached for making this work in all email helpers. I'm interested to know what others think about this. Any feedback welcome.