Files
sure/test/controllers/pwa_controller_test.rb
Sure Admin (bot) b73da38f49 fix(pwa): serve manifest for html accept headers (#1828)
* fix(pwa): serve manifest for html accept headers

* style: add trailing newline to pwa controller
2026-05-18 19:10:01 +02:00

12 lines
366 B
Ruby

require "test_helper"
class PwaControllerTest < ActionDispatch::IntegrationTest
test "manifest responds successfully for html accept headers" do
get "/manifest", headers: { "Accept" => "text/html" }
assert_response :success
assert_equal "application/manifest+json", response.media_type
assert_includes response.body, '"start_url": "/"'
end
end