added limit methods to user, more work on post views

This commit is contained in:
albert
2010-03-12 15:18:30 -05:00
parent 9f29ffc8c3
commit 9eb578927c
18 changed files with 282 additions and 108 deletions

View File

@@ -0,0 +1,4 @@
Factory.define(:comment_vote) do |f|
f.comment {|x| x.association(:comment)}
f.user {|x| x.association(:user)}
end

View File

@@ -1,8 +1,10 @@
Factory.define(:user) do |f|
f.name {Faker::Name.first_name}
f.password "password"
f.password_hash {User.sha1("password")}
f.email {Faker::Internet.email}
f.default_image_size "medium"
f.base_upload_limit 10
end
Factory.define(:banned_user, :parent => :user) do |f|