Sha256: 174c88d3d888a5ba9cbe9222b9e82fa3e8e22d7ad56d0a7241cf57417d8596c6

Contents?: true

Size: 518 Bytes

Versions: 7

Compression:

Stored size: 518 Bytes

Contents

require "service/shared_service_tests"

class ActiveStorage::Service::DiskServiceTest < ActiveSupport::TestCase
  SERVICE = ActiveStorage::Service::DiskService.new(root: File.join(Dir.tmpdir, "active_storage"))

  include ActiveStorage::Service::SharedServiceTests

  test "url generation" do
    assert_match /rails\/active_storage\/disk\/.*\/avatar\.png\?.+disposition=inline/,
      @service.url(FIXTURE_KEY, expires_in: 5.minutes, disposition: :inline, filename: "avatar.png", content_type: "image/png")
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
activestorage_legacy-0.2.1 test/service/disk_service_test.rb
activestorage_legacy-0.2.0 test/service/disk_service_test.rb
activestorage_legacy-0.1.3 test/service/disk_service_test.rb
activestorage_legacy-0.1.2 test/service/disk_service_test.rb
activestorage_legacy-0.1.1 test/service/disk_service_test.rb
activestorage_legacy-0.1.1.alpha test/service/disk_service_test.rb
activestorage_legacy-0.1 test/service/disk_service_test.rb