Merge pull request #1550 from consul/budgets-unfeasible

Investments reclassified as unfeasible
This commit is contained in:
Juanjo Bazán
2017-05-18 14:37:32 +02:00
committed by GitHub
11 changed files with 236 additions and 47 deletions

View File

@@ -306,6 +306,12 @@ FactoryGirl.define do
association :investment, factory: :budget_investment
end
factory :budget_reclassified_vote, class: 'Budget::ReclassifiedVote' do
user
association :investment, factory: :budget_investment
reason "unfeasible"
end
factory :vote do
association :votable, factory: :debate
association :voter, factory: :user