質問編集履歴
1
エラーメッセージを画像に
title
CHANGED
File without changes
|
body
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
チュートリアルは英語ですが、これを日本語に変えるとテスト(rspec)が最初のexpectからエラーになりました。
|
6
6
|
|
7
|
-
以下の<p>で囲った部分
|
7
|
+
以下の<p>で囲った部分が英語だとエラーになりません。
|
8
8
|
|
9
9
|
/app/views/user_mailer/account_activation.html.erb
|
10
10
|
```ruby
|
@@ -47,20 +47,9 @@
|
|
47
47
|
```
|
48
48
|
|
49
49
|
エラーメッセージ
|
50
|
-
```text
|
51
|
-
|
50
|
+

|
52
51
|
|
53
|
-
1) UserMailer account_activation renders the body
|
54
|
-
Failure/Error: expect(mail.body.encoded).to match(user.name)
|
55
|
-
|
56
|
-
expected "\r\n----==_mimepart_5ebb325316eee_1c846439a884449\r\nContent-Type: text/plain;\r\n charset=UTF-8\r\n...44KLPC9hPg0KICA8L2JvZHk+DQo8L2h0bWw+DQo=\r\n\r\n----==_mimepart_5ebb325316eee_1c846439a884449--\r\n" to match "前田 美優"
|
57
|
-
Diff:
|
58
|
-
@@ -1,2 +1,36 @@
|
59
|
-
-前田 美優
|
60
|
-
+
|
61
|
-
```
|
62
52
|
|
63
|
-
|
64
53
|
試しに、以下を参考にrailsを日本語設定にしましたが、現状変わらずです。
|
65
54
|
[[初学者]Railsのi18nによる日本語化対応](https://qiita.com/shimadama/items/7e5c3d75c9a9f51abdd5)
|
66
55
|
設定した2点
|