1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Helper methods are private

This commit is contained in:
David Heinemeier Hansson 2017-07-06 16:01:18 +02:00
parent 894e1e3183
commit cd4c2a4d8e

View file

@ -41,9 +41,10 @@ class ActiveStorage::Service::MirrorServiceTest < ActiveSupport::TestCase
end
end
private
def upload(data, to:)
SecureRandom.base58(24).tap do |key|
@service.upload key, StringIO.new(data)
@service.upload key, StringIO.new(data), checksum: Digest::MD5.base64digest(data)
end
end
end