diff options
author | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2017-08-14 07:47:13 +0900 |
---|---|---|
committer | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2017-08-14 07:49:13 +0900 |
commit | 2f469dc3088a941f770de8a0188cc0b71c1f83fd (patch) | |
tree | 5265beb0f0bb9a3eafce3bde3cb33577e9106539 /activejob/test/jobs/retry_job.rb | |
parent | 691af789000446cedbe9faf532a991a87c7e254c (diff) | |
download | rails-2f469dc3088a941f770de8a0188cc0b71c1f83fd.tar.gz rails-2f469dc3088a941f770de8a0188cc0b71c1f83fd.tar.bz2 rails-2f469dc3088a941f770de8a0188cc0b71c1f83fd.zip |
Clear mail after test
If clear it before the test, the mail of the last executed test will not
be correctly cleared.
Therefore, executing the test with seed below will result in an error.
```
./bin/test -w --seed 55480
Run options: --seed 55480
# Running:
...........................................................................................................................................................F
Failure:
MailDeliveryTest#test_does_not_increment_the_deliveries_collection_on_error [/home/yaginuma/program/rails/master_y_yagi/rails/actionmailer/test/delivery_methods_test.rb:221]:
--- expected
+++ actual
@@ -1 +1 @@
-[]
+[#<Mail::Message:47011389364640, Multipart: false, Headers: <Date: Mon, 14 Aug 2017 07:48:40 +0900>, <From: test-sender@test.com>, <To: test-receiver@test.com>, <Message-ID: <5990d748ea5b2_29342ac1af8bcf40886f7@yaginuma.mail>>, <Subject: Test Subject>, <Mime-Version: 1.0>, <Content-Type: text/plain>, <Content-Transfer-Encoding: 7bit>>]
bin/test test/delivery_methods_test.rb:216
```
Diffstat (limited to 'activejob/test/jobs/retry_job.rb')
0 files changed, 0 insertions, 0 deletions