Implements #150
Adds an entry inside moderation section that allows moderators to check pending tasks and mark them as solved.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user