]> git.openstreetmap.org Git - rails.git/blobdiff - test/factories/reports.rb
use a controller method to handle cancan denials
[rails.git] / test / factories / reports.rb
index 7c0076677d90c20699ffc3d957299cbf2f1f66a9..7936d46b2d3f4b619a75e9e6437e4d1c878154b3 100644 (file)
@@ -1,6 +1,7 @@
-FactoryGirl.define do
+FactoryBot.define do
   factory :report do
     sequence(:details) { |n| "Report details #{n}" }
+    category "other"
     issue
     user
   end