Skip to content

Commit

Permalink
Convert manifest controller spec to request spec (mastodon#31596)
Browse files Browse the repository at this point in the history
  • Loading branch information
mjankowski authored Aug 26, 2024
1 parent 36ccdcc commit 5172d84
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 19 deletions.
19 changes: 0 additions & 19 deletions spec/controllers/manifests_controller_spec.rb

This file was deleted.

24 changes: 24 additions & 0 deletions spec/requests/manifest_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# frozen_string_literal: true

require 'rails_helper'

describe 'Manifest' do
describe 'GET /manifest' do
before { get '/manifest' }

it 'returns http success' do
expect(response)
.to have_http_status(200)
.and have_attributes(
content_type: match('application/json')
)
expect(body_as_json)
.to include(
id: '/home',
name: 'Mastodon'
)
end

it_behaves_like 'cacheable response'
end
end

0 comments on commit 5172d84

Please sign in to comment.