aboutsummaryrefslogtreecommitdiffstats
path: root/activestorage/test/models/variant_test.rb
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2017-08-05 09:07:07 -0500
committerGitHub <noreply@github.com>2017-08-05 09:07:07 -0500
commitb360f07bd2a43c7fe5f33ae520b1cf3563e54645 (patch)
tree809dc502e09d6ac2863d56ebf1455ea12bbb9d06 /activestorage/test/models/variant_test.rb
parentea5c99dce1e23b0f8211583d6cb7846d9e303971 (diff)
parent46db463d068d9b24c99f11a1c78dac1c1bfb45c2 (diff)
downloadrails-b360f07bd2a43c7fe5f33ae520b1cf3563e54645.tar.gz
rails-b360f07bd2a43c7fe5f33ae520b1cf3563e54645.tar.bz2
rails-b360f07bd2a43c7fe5f33ae520b1cf3563e54645.zip
Merge pull request #30081 from y-yagi/fix_ruby_warnings
Fix ruby warnings
Diffstat (limited to 'activestorage/test/models/variant_test.rb')
-rw-r--r--activestorage/test/models/variant_test.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/activestorage/test/models/variant_test.rb b/activestorage/test/models/variant_test.rb
index 7d52f005a7..04ebaccb6a 100644
--- a/activestorage/test/models/variant_test.rb
+++ b/activestorage/test/models/variant_test.rb
@@ -8,7 +8,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
@@ -17,11 +17,11 @@ 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
assert_equal 67, image.height
- assert_match /Gray/, image.colorspace
+ assert_match(/Gray/, image.colorspace)
end
end