bmabey/email-spec — Issue #83: verifying subjects with parenthesis requires escaping the parenthesis
Author: chadoh
Created: 2011-11-25 19:17:35+00:00
State: open

I had this step:

Then "roger@example.com" should receive an email with subject "Someone (hopefully you!) submitted for you!"

and, though I could `p ActionMailer::Base.deliveries` and see that there **was** such an email that had been sent, the step would not pass until I changed it to:

Then "roger@example.com" should receive an email with subject "Someone \(hopefully you!\) submitted for you!"

Which makes the feature look weird. I know email-spec is doing a regex match behind the scenes, which is very helpful, but since the subject is in quotes in this step, I think it would make sense to escape regex characters like parens.

Thanks for the wonderful gem and all the hard work you put into it!