Adds an entry inside moderation section that allows moderators to check
pending tasks and mark them as solved.
This commit is contained in:
Juan Salvador Pérez García
2018-06-18 11:39:04 +02:00
parent 83f78b1940
commit 33b3431c70
27 changed files with 384 additions and 9 deletions

View File

@@ -1081,4 +1081,20 @@ LOREM_IPSUM
comments { Faker::Lorem.sentence(10) }
end
end
factory :administrator_task do
source { |s| s.association(:proposal_executed_dashboard_action, :with_comments) }
user
executed_at { Time.now }
trait :pending do
user { nil }
executed_at { nil }
end
trait :done do
user
executed_at { Time.now }
end
end
end