Add budget investments translation interface

* Adapt translatable spec helper method to work with budget investments
* Remove old attributes from strong parameters
* Add missing locales to admin.yml and budgets.yml
* Change SpendingProposal.title_max_length and
  SpendingProposal.description_max_lenght to Budget::Investment methods
* Add budget investment translatable attribute translations
This commit is contained in:
Senén Rodero Rodríguez
2018-12-23 18:48:13 +01:00
committed by voodoorai2000
parent 5eb5f02cbe
commit 661ca5a568
9 changed files with 62 additions and 35 deletions

View File

@@ -11,6 +11,12 @@ describe "Admin budget investments" do
:budget_investment,
"admin_budget_budget_investment_path"
it_behaves_like "translatable",
:budget_investment,
"edit_admin_budget_budget_investment_path",
%w[title],
{ "description" => :ckeditor }
before do
@admin = create(:administrator)
login_as(@admin.user)