どうかご助力お願い致します
ERROR["test_account_activation", UserMailerTest, 2015-12-17 15:57:08 0000]
test_account_activation#UserMailerTest (1450367828.76s)
SyntaxError: SyntaxError: (erb):11: syntax
error, unexpected tLABEL
(erb):13: syntax error, unexpected ':', expecting ')'
email: duchess@example.gov
^
(erb):14: syntax error, unexpected ':', expecting ')'
password_digest: <%= User.digest('password') ...
^
(erb):21: syntax error, unexpected tCONSTANT, expecting ')'
password_digest: <%= User.digest('password') ).to_s); ...
^
(erb):25: syntax error, unexpected tLABEL
(erb):27: syntax error, unexpected ':', expecting ')'
email: boss@example.gov
^
(erb):28: syntax error, unexpected ':', expecting ')'
password_digest: <%= User.digest('password') ...
^
(erb):28: unterminated string meets end of file
(erb):28: syntax error, unexpected end-of-input, expecting ')'
<% end ).to_s); _erbout.force_encoding(ENCODING)
^
このエラー文で、該当箇所はおそらく、
require 'test_helper'
class UserMailerTest < ActionMailer::TestCase
test "account_activation" do
user = users(:michael)
user.activation_token = User.new_token
mail = UserMailer.account_activation(user)
assert_equal "Account activation", mail.subject
assert_equal [user.email], mail.to
assert_equal ["noreply@example.com"],mail.from
assert_match user.name,mail.body.encoded
assert_match user.activation_token,mail.body.encoded
assert_match CGI::escape(user.email),mail.body.encoded
end
end
ここになるはずなのですが、どうしてもエラー箇所がわかりません。
どうかご回答お願いします。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2016/01/09 03:25
2016/01/09 04:04
2016/01/09 04:58
2016/01/09 05:53