回答編集履歴

1

編集

2021/06/18 11:08

投稿

asm
asm

スコア15147

test CHANGED
@@ -8,4 +8,6 @@
8
8
 
9
9
  対処としては[Rails guides](https://guides.rubyonrails.org/testing.html#the-basic-test-case)のように
10
10
 
11
- `mail.body.encoded`の代わりに`mail.body.to_s`を使うとよいと思います。
11
+ ~~`mail.body.encoded`の代わりに`mail.body.to_s`を使うとよいと思います。~~
12
+
13
+ `mail.text_part.body.to_s`および`mail.html_part.body.to_s`を検証するとよいと思います。