mirror of
https://github.com/discourse/discourse.git
synced 2025-05-25 00:32:52 +08:00
clarify copy when editing a poll after the first 5 minutes
This commit is contained in:
@ -92,7 +92,7 @@ describe PostsController do
|
||||
xhr :put, :update, { id: post_id, post: { raw: new_raw } }
|
||||
expect(response).not_to be_success
|
||||
json = ::JSON.parse(response.body)
|
||||
expect(json["errors"][0]).to eq(I18n.t("poll.cannot_change_polls_after_5_minutes"))
|
||||
expect(json["errors"][0]).to eq(I18n.t("poll.op_cannot_edit_options_after_5_minutes"))
|
||||
end
|
||||
|
||||
it "can be edited by staff" do
|
||||
|
Reference in New Issue
Block a user