2024-08-26 14:37:23 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
require 'rails_helper'
|
|
|
|
|
2024-09-04 05:12:25 +00:00
|
|
|
RSpec.describe 'Manifest' do
|
2024-08-26 14:37:23 +00:00
|
|
|
describe 'GET /manifest' do
|
|
|
|
before { get '/manifest' }
|
|
|
|
|
|
|
|
it 'returns http success' do
|
|
|
|
expect(response)
|
|
|
|
.to have_http_status(200)
|
2024-09-03 15:35:19 +00:00
|
|
|
.and have_cacheable_headers
|
2024-08-26 14:37:23 +00:00
|
|
|
.and have_attributes(
|
|
|
|
content_type: match('application/json')
|
|
|
|
)
|
2024-09-06 09:58:46 +00:00
|
|
|
expect(response.parsed_body)
|
2024-08-26 14:37:23 +00:00
|
|
|
.to include(
|
|
|
|
id: '/home',
|
2024-08-26 17:08:42 +00:00
|
|
|
name: 'Mastodon Glitch Edition'
|
2024-08-26 14:37:23 +00:00
|
|
|
)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|