From d3f92261902d09adf54dbc211e3a1080d943440b Mon Sep 17 00:00:00 2001 From: Abhay Nikam Date: Wed, 13 Feb 2019 23:29:48 +0530 Subject: Delegated path_for to primary in the MirrorService --- activestorage/test/service/mirror_service_test.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'activestorage/test') diff --git a/activestorage/test/service/mirror_service_test.rb b/activestorage/test/service/mirror_service_test.rb index 94c751a4ff..249a5652fb 100644 --- a/activestorage/test/service/mirror_service_test.rb +++ b/activestorage/test/service/mirror_service_test.rb @@ -61,4 +61,8 @@ class ActiveStorage::Service::MirrorServiceTest < ActiveSupport::TestCase @service.url(@key, expires_in: 2.minutes, disposition: :inline, filename: filename, content_type: "text/plain") end end + + test "path for file in primary service" do + assert_equal @service.primary.path_for(@key), @service.path_for(@key) + end end -- cgit v1.2.3