Fix quotes with CWs but no text not having fallback link (#37361)
This commit is contained in:
1 parent
1fe737e0bd
commit
f711e222dc
3 files changed
+22
-3
No files matched your search
@@ -344,7 +344,7 @@ RSpec.describe '/api/v1/statuses' do
|
||||
.to start_with('application/json')
|
||||
expect(response.parsed_body[:quote]).to be_present
|
||||
expect(response.parsed_body[:spoiler_text]).to eq 'this is a CW'
|
||||
expect(response.parsed_body[:content]).to eq ''
|
||||
expect(response.parsed_body[:content]).to match(/RE: /)
|
||||
expect(response.headers['X-RateLimit-Limit']).to eq RateLimiter::FAMILIES[:statuses][:limit].to_s
|
||||
expect(response.headers['X-RateLimit-Remaining']).to eq (RateLimiter::FAMILIES[:statuses][:limit] - 1).to_s
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user