mirror of
https://github.com/we-promise/sure.git
synced 2026-05-24 13:04:56 +00:00
* fix(pwa): serve manifest for html accept headers * style: add trailing newline to pwa controller
12 lines
366 B
Ruby
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
|