1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionmailer/test
yuuji.yaginuma 2f469dc308 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
```
2017-08-14 07:49:13 +09:00
..
fixtures
mailers Use frozen string literal in actionmailer/ 2017-07-23 18:17:19 +03:00
abstract_unit.rb Use frozen string literal in actionmailer/ 2017-07-23 18:17:19 +03:00
assert_select_email_test.rb Use frozen string literal in actionmailer/ 2017-07-23 18:17:19 +03:00
asset_host_test.rb Use frozen string literal in actionmailer/ 2017-07-23 18:17:19 +03:00
base_test.rb Merge remote-tracking branch 'origin/master' into unlock-minitest 2017-08-01 17:34:14 -04:00
caching_test.rb Use frozen string literal in actionmailer/ 2017-07-23 18:17:19 +03:00
delivery_methods_test.rb Use frozen string literal in actionmailer/ 2017-07-23 18:17:19 +03:00
i18n_with_controller_test.rb Use frozen string literal in actionmailer/ 2017-07-23 18:17:19 +03:00
log_subscriber_test.rb Use frozen string literal in actionmailer/ 2017-07-23 18:17:19 +03:00
mail_helper_test.rb Use frozen string literal in actionmailer/ 2017-07-23 18:17:19 +03:00
mail_layout_test.rb Use frozen string literal in actionmailer/ 2017-07-23 18:17:19 +03:00
message_delivery_test.rb Clear mail after test 2017-08-14 07:49:13 +09:00
parameterized_test.rb Use frozen string literal in actionmailer/ 2017-07-23 18:17:19 +03:00
test_case_test.rb Use frozen string literal in actionmailer/ 2017-07-23 18:17:19 +03:00
test_helper_test.rb Use frozen string literal in actionmailer/ 2017-07-23 18:17:19 +03:00
url_test.rb Use frozen string literal in actionmailer/ 2017-07-23 18:17:19 +03:00