mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-21 22:44:35 +00:00
Merge commit '7ed9c590b98610f8d68deab9ef8df260eec6d8f0' into glitch-soc/merge-upstream
This commit is contained in:
@@ -22,6 +22,8 @@ RSpec.describe 'Sources' do
|
||||
subject
|
||||
|
||||
expect(response).to have_http_status(200)
|
||||
expect(response.content_type)
|
||||
.to start_with('application/json')
|
||||
expect(response.parsed_body).to match({
|
||||
id: status.id.to_s,
|
||||
text: status.text,
|
||||
@@ -38,6 +40,8 @@ RSpec.describe 'Sources' do
|
||||
subject
|
||||
|
||||
expect(response).to have_http_status(404)
|
||||
expect(response.content_type)
|
||||
.to start_with('application/json')
|
||||
end
|
||||
end
|
||||
|
||||
@@ -52,6 +56,8 @@ RSpec.describe 'Sources' do
|
||||
subject
|
||||
|
||||
expect(response).to have_http_status(200)
|
||||
expect(response.content_type)
|
||||
.to start_with('application/json')
|
||||
expect(response.parsed_body).to match({
|
||||
id: status.id.to_s,
|
||||
text: status.text,
|
||||
@@ -68,6 +74,8 @@ RSpec.describe 'Sources' do
|
||||
subject
|
||||
|
||||
expect(response).to have_http_status(401)
|
||||
expect(response.content_type)
|
||||
.to start_with('application/json')
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user