提交 5af7d475 编写于 作者: Y yhirano55 提交者: George Claghorn

Use escaped character in regexp

上级 21e690cb
......@@ -152,7 +152,7 @@ def test_mailer_skeleton_is_created
assert_file "app/mailers/test_app/notifier_mailer.rb" do |mailer|
assert_match(/module TestApp/, mailer)
assert_match(/class NotifierMailer < ApplicationMailer/, mailer)
assert_no_match(/default from: "from@example.com"/, mailer)
assert_no_match(/default from: "from@example\.com"/, mailer)
end
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册