aboutsummaryrefslogtreecommitdiffstats
path: root/activestorage/test/models
diff options
context:
space:
mode:
authorMatthew Draper <matthew@trebex.net>2017-08-14 23:48:21 +0930
committerGitHub <noreply@github.com>2017-08-14 23:48:21 +0930
commita0bd13fca347d7d022cb96d46a2a9a7d343ab0a5 (patch)
treeb270a6f17bc3e0f191eae3b9b44eda55d824e2d2 /activestorage/test/models
parentc4434171cdfda666ff3f164b680486d7cb2c5f3c (diff)
parent2b6e85c1900138d8f1b07575abf187e4a8aee502 (diff)
downloadrails-a0bd13fca347d7d022cb96d46a2a9a7d343ab0a5.tar.gz
rails-a0bd13fca347d7d022cb96d46a2a9a7d343ab0a5.tar.bz2
rails-a0bd13fca347d7d022cb96d46a2a9a7d343ab0a5.zip
Merge pull request #30250 from koic/should_escape_regexp_wildcard_character
Should escape regexp wildcard character `.`
Diffstat (limited to 'activestorage/test/models')
-rw-r--r--activestorage/test/models/variant_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activestorage/test/models/variant_test.rb b/activestorage/test/models/variant_test.rb
index f4e1e9e51d..ca112ab907 100644
--- a/activestorage/test/models/variant_test.rb
+++ b/activestorage/test/models/variant_test.rb
@@ -10,7 +10,7 @@ class ActiveStorage::VariantTest < ActiveSupport::TestCase
test "resized variation" do
variant = @blob.variant(resize: "100x100").processed
- assert_match(/racecar.jpg/, variant.service_url)
+ assert_match(/racecar\.jpg/, variant.service_url)
image = read_image_variant(variant)
assert_equal 100, image.width
@@ -19,7 +19,7 @@ class ActiveStorage::VariantTest < ActiveSupport::TestCase
test "resized and monochrome variation" do
variant = @blob.variant(resize: "100x100", monochrome: true).processed
- assert_match(/racecar.jpg/, variant.service_url)
+ assert_match(/racecar\.jpg/, variant.service_url)
image = read_image_variant(variant)
assert_equal 100, image.width