Skip to content

Commit

Permalink
Update regex
Browse files Browse the repository at this point in the history
  • Loading branch information
georgeclaghorn committed Aug 20, 2017
1 parent 332049d commit c799329
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activestorage/test/service/azure_storage_service_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class ActiveStorage::Service::AzureStorageServiceTest < ActiveSupport::TestCase
url = @service.url(FIXTURE_KEY, expires_in: 5.minutes,
disposition: "inline; filename=\"avatar.png\"", filename: "avatar.png", content_type: "image/png")

assert_match(/(\S+)&rsct=image%2Fpng&rscd=inline%3B\+filename%3D%22avatar.png/, url)
assert_match(/(\S+)&rscd=inline%3B\+filename%3D%22avatar.png%22&rsct=image%2Fpng/, url)
assert_match SERVICE_CONFIGURATIONS[:azure][:container], url
end
end
Expand Down

0 comments on commit c799329

Please sign in to comment.