aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authoryhirano55 <yhirano@me.com>2017-09-12 09:34:15 +0900
committerGeorge Claghorn <george.claghorn@gmail.com>2017-09-11 20:34:15 -0400
commit5af7d475c8cd7d3dbffca7452f3dcb221896e8e5 (patch)
tree873ccbf6a1a5fdc223831e47067c2d3dc13fe3a5 /railties
parent21e690cba8994996f51d58cfcd24e3ae9006b615 (diff)
downloadrails-5af7d475c8cd7d3dbffca7452f3dcb221896e8e5.tar.gz
rails-5af7d475c8cd7d3dbffca7452f3dcb221896e8e5.tar.bz2
rails-5af7d475c8cd7d3dbffca7452f3dcb221896e8e5.zip
Use escaped character in regexp
Diffstat (limited to 'railties')
-rw-r--r--railties/test/generators/namespaced_generators_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/test/generators/namespaced_generators_test.rb b/railties/test/generators/namespaced_generators_test.rb
index 205014c80a..4b75a31f17 100644
--- a/railties/test/generators/namespaced_generators_test.rb
+++ b/railties/test/generators/namespaced_generators_test.rb
@@ -152,7 +152,7 @@ class NamespacedMailerGeneratorTest < NamespacedGeneratorTestCase
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