Spreewald 0.7.0 brings better email steps, improved test suite
- You can now test for Reply-to
Then an e-mail should have been sent with:
"""
From: foo@bar.com
To: bar@baz.com
Reply-To: qux@bam.com
"""
- You can now specify the e-mail body after two line breaks
Then an e-mail should have been sent with:
"""
From: foo@bar.com
To: bar@baz.com
Message body goes here!
"""
- There are now more tests for e-mail steps
Always be testing.
- Test suite can now run individual features
FEATURE=tests/rails-3.2/features/shared/email_steps.feature rake tests:run
- Test suite can now test actual multiline steps
Use three single quotes:
Then the following multiline step should succeed:
"""
Then an email should have been sent with:
'''
From: from@example.com
To: to@example.com
'''
"""