Refactor. Create index scope inside imageable shared examples to check index action of any imageable model. Add image to proposals index.

This commit is contained in:
Senén Rodero Rodríguez
2017-09-13 17:03:39 +02:00
parent 3310089208
commit ceabd16d57
17 changed files with 146 additions and 132 deletions

View File

@@ -464,7 +464,7 @@ feature 'Budget Investments' do
it_behaves_like "followable", "budget_investment", "budget_investment_path", { "budget_id": "budget_id", "id": "id" }
it_behaves_like "imageable", "budget_investment", "budget_investment_path", { "budget_id": "budget_id", "id": "id" }
it_behaves_like "imageable", "budget_investment", "budget_investment_path", { "budget_id": "budget_id", "id": "id" }, "budget_investments_path", { "budget_id": "budget_id" }
it_behaves_like "nested imageable",
"budget_investment",