]> git.openstreetmap.org Git - rails.git/blobdiff - test/factories/issues.rb
use a controller method to handle cancan denials
[rails.git] / test / factories / issues.rb
index 913c47f2af941ff6955d92769ac48f619ffa0c46..e209bd25dab26f2827fc737afb5fb1dc3273e7d4 100644 (file)
@@ -3,5 +3,8 @@ FactoryBot.define do
     # Default to reporting users
     association :reportable, :factory => :user
     association :reported_user, :factory => :user
+
+    # Default to assigning to an administrator
+    assigned_role "administrator"
   end
 end