additional functional tests, some controller fixes
This commit is contained in:
@@ -1,6 +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.reason {Faker::Lorem.words.join(" ")}
|
||||
f.duration 60
|
||||
end
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
Factory.define(:comment) do |f|
|
||||
f.post {|x| x.association(:post)}
|
||||
f.body {Faker::Lorem.sentences}
|
||||
f.body {Faker::Lorem.sentences.join(" ")}
|
||||
f.score 0
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user