3 # Default to reporting users
4 reportable :factory => :user
5 reported_user :factory => :user
7 # Default to assigning to an administrator
8 assigned_role { "administrator" }
10 # Optionally create some reports for this issue
11 factory :issue_with_reports do
16 after(:create) do |issue, evaluator|
17 create_list(:report, evaluator.reports_count, :issue => issue)