Add remote translations to debates and proposals

Include RemotelyTranslatable concern on commentable actions to detect
remote translations on index and show controllers actions.
This commit is contained in:
taitus
2019-01-25 17:40:54 +01:00
committed by voodoorai2000
parent b6642f826e
commit c1f3a4ad3b
3 changed files with 23 additions and 0 deletions

View File

@@ -25,6 +25,14 @@ describe "Proposals" do
"edit_proposal_path",
%w[title summary],
{ "description" => :ckeditor }
it_behaves_like "remotely_translatable",
:proposal,
"proposals_path",
{}
it_behaves_like "remotely_translatable",
:proposal,
"proposal_path",
{ "id": "id" }
end
context "Index" do