Helper methods are private

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

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