clarify copy when editing a poll after the first 5 minutes

This commit is contained in:
Régis Hanol
2015-05-07 17:24:35 +02:00
parent 9b0ca60f52
commit c1bb7bc7cc
3 changed files with 10 additions and 8 deletions

View File

@ -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