From 2f9f22e9dcb463b695e613a50c0d75485ac50768 Mon Sep 17 00:00:00 2001 From: Christoph Haas Date: Thu, 26 Jun 2025 23:36:28 +0200 Subject: [PATCH] added test for /thumbnail-for-version --- test/integration/browse_test.rb | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 test/integration/browse_test.rb diff --git a/test/integration/browse_test.rb b/test/integration/browse_test.rb new file mode 100644 index 0000000..88d5dfb --- /dev/null +++ b/test/integration/browse_test.rb @@ -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