added limit methods to user, more work on post views
This commit is contained in:
4
test/factories/comment_vote.rb
Normal file
4
test/factories/comment_vote.rb
Normal file
@@ -0,0 +1,4 @@
|
||||
Factory.define(:comment_vote) do |f|
|
||||
f.comment {|x| x.association(:comment)}
|
||||
f.user {|x| x.association(:user)}
|
||||
end
|
||||
@@ -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|
|
||||
|
||||
Reference in New Issue
Block a user