updated to rails 3.2, fixed tests
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
Factory.define(:artist) do |f|
|
||||
f.name {rand(1_000_000).to_s}
|
||||
f.creator {|x| x.association(:user)}
|
||||
f.is_active true
|
||||
end
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
Factory.define(:comment) do |f|
|
||||
f.post {|x| x.association(:post)}
|
||||
f.body {Faker::Lorem.sentences.join(" ")}
|
||||
f.score 0
|
||||
end
|
||||
|
||||
@@ -2,5 +2,4 @@ Factory.define(:dmail) do |f|
|
||||
f.to {|x| x.association(:user)}
|
||||
f.title {Faker::Lorem.words.join(" ")}
|
||||
f.body {Faker::Lorem.sentences.join(" ")}
|
||||
f.is_read false
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user