added test for /thumbnail-for-version
This commit is contained in:
parent
4bc64c3abf
commit
2f9f22e9dc
1 changed files with 13 additions and 0 deletions
13
test/integration/browse_test.rb
Normal file
13
test/integration/browse_test.rb
Normal 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
|
||||||
Loading…
Add table
Add a link
Reference in a new issue