spec/support/data.rb in rolify-2.2.2 vs spec/support/data.rb in rolify-3.0.0
- old
+ new
@@ -1,16 +1,25 @@
+User.destroy_all
+Role.destroy_all
+Forum.destroy_all
+Group.destroy_all
+Privilege.destroy_all
+Customer.destroy_all
+
# Users
User.create(:login => "admin")
User.create(:login => "moderator")
User.create(:login => "god")
User.create(:login => "zombie")
-Customer.create(:login => "customer VIP")
-Customer.create(:login => "customer Doe")
-Customer.create(:login => "customer John")
-Customer.create(:login => "customer Edgar")
+Customer.create(:login => "admin")
+Customer.create(:login => "moderator")
+Customer.create(:login => "god")
+Customer.create(:login => "zombie")
+
# Resources
Forum.create(:name => "forum 1")
Forum.create(:name => "forum 2")
Forum.create(:name => "forum 3")
+
Group.create(:name => "group 1")
-Group.create(:name => "group 2")
\ No newline at end of file
+Group.create(:name => "group 2")