Add proposals translation interface

* Convert proposal form into translatable one.
 * Adapt translatable shared spec to define an owner when running at
   frontend feature specs.
 * Remove old attributes from strong parameters.
This commit is contained in:
Senén Rodero Rodríguez
2018-12-23 17:40:10 +01:00
committed by voodoorai2000
parent 4ce006ec96
commit bd3bb72370
5 changed files with 60 additions and 31 deletions

View File

@@ -15,6 +15,11 @@ describe "Proposals" do
context "Concerns" do
it_behaves_like "notifiable in-app", Proposal
it_behaves_like "relationable", Proposal
it_behaves_like "translatable",
"proposal",
"edit_proposal_path",
%w[title summary],
{ "description" => :ckeditor }
end
context "Index" do