mirror of
https://github.com/yingziwu/mastodon.git
synced 2026-02-04 03:25:14 +00:00
Add spec for quote policy update change (#37474)
This commit is contained in:
parent
57e0c6562f
commit
f1c9c89c39
1 changed files with 9 additions and 0 deletions
|
|
@ -508,6 +508,15 @@ RSpec.describe '/api/v1/statuses' do
|
||||||
.to start_with('application/json')
|
.to start_with('application/json')
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
context 'when status has non-default quote policy and param is omitted' do
|
||||||
|
let(:status) { Fabricate(:status, account: user.account, quote_approval_policy: 'nobody') }
|
||||||
|
|
||||||
|
it 'preserves existing quote approval policy' do
|
||||||
|
expect { subject }
|
||||||
|
.to_not(change { status.reload.quote_approval_policy })
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue