added test for /thumbnail-for-version

This commit is contained in:
Christoph Haas 2025-06-26 23:36:28 +02:00
parent 4bc64c3abf
commit 2f9f22e9dc

View file

@ -0,0 +1,13 @@
require 'test_helper'
class UserFlowsTest < ActionDispatch::IntegrationTest
# test "the truth" do
# assert true
# end
test 'user can get a thumbnail for a specific package and version' do
get '/thumbnail-with-version/package-5/0.1'
assert_response :not_found
assert_match(%r{image/(png|jpeg)}, @response.content_type)
end
end