added bans

This commit is contained in:
albert
2010-02-19 17:30:11 -05:00
parent 09cca6f631
commit 703eb6a1b6
11 changed files with 478 additions and 11 deletions

6
test/factories/ban.rb Normal file
View File

@@ -0,0 +1,6 @@
Factory.define(:ban) do |f|
f.user {|x| x.association(:user)}
f.banner {|x| x.association(:admin_user)}
f.reason {Faker::Lorem.words}
f.duration 60
end