blob: c37b9c8a102c385ee302af16e854ddf954810f93 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
# frozen_string_literal: true
require "test_helper"
require "database/setup"
class ActiveStorage::BlobsControllerTest < ActionDispatch::IntegrationTest
setup do
@blob = create_image_blob filename: "racecar.jpg"
end
test "showing blob utilizes browser caching" do
get rails_blob_url(@blob)
assert_redirected_to(/racecar\.jpg/)
assert_equal "max-age=300, private", @response.headers["Cache-Control"]
end
end
|