diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2017-05-07 04:08:58 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2017-05-07 04:10:00 +0900 |
commit | b201474756a2ee493406ad0cb49f49c6873bdc28 (patch) | |
tree | 5bf7fc2271ddc5d4ed511db35893c2049142831b /guides | |
parent | af58740b8d943f90a18c3e7ceca9432775cfe192 (diff) | |
download | rails-b201474756a2ee493406ad0cb49f49c6873bdc28.tar.gz rails-b201474756a2ee493406ad0cb49f49c6873bdc28.tar.bz2 rails-b201474756a2ee493406ad0cb49f49c6873bdc28.zip |
Should escape meta characters in regexp
Diffstat (limited to 'guides')
-rw-r--r-- | guides/source/testing.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/testing.md b/guides/source/testing.md index 7741834153..5224d11f45 100644 --- a/guides/source/testing.md +++ b/guides/source/testing.md @@ -1482,7 +1482,7 @@ class UserControllerTest < ActionDispatch::IntegrationTest assert_equal "You have been invited by me@example.com", invite_email.subject assert_equal 'friend@example.com', invite_email.to[0] - assert_match(/Hi friend@example.com/, invite_email.body.to_s) + assert_match(/Hi friend@example\.com/, invite_email.body.to_s) end end ``` |