- end
-
- def test_default_assigned_role
- create(:language, :code => "en")
- diary_entry = create(:diary_entry)
- note = create(:note_with_comments)
-
- issue = Issue.new
- issue.reportable = diary_entry
- issue.save!
- assert_equal "administrator", issue.assigned_role
-
- issue = Issue.new
- issue.reportable = note
- issue.save!
- assert_equal "moderator", issue.assigned_role