1
0

manifest_spec.rb 496 B

1234567891011121314151617181920212223
  1. # frozen_string_literal: true
  2. require 'rails_helper'
  3. RSpec.describe 'Manifest' do
  4. describe 'GET /manifest' do
  5. before { get '/manifest' }
  6. it 'returns http success' do
  7. expect(response)
  8. .to have_http_status(200)
  9. .and have_cacheable_headers
  10. .and have_attributes(
  11. content_type: match('application/json')
  12. )
  13. expect(response.parsed_body)
  14. .to include(
  15. id: '/home',
  16. name: 'Mastodon'
  17. )
  18. end
  19. end
  20. end