updated to rails 3.2, fixed tests

This commit is contained in:
albert
2012-01-27 14:22:47 -05:00
parent 75d977ae80
commit c8bcf5ad7c
16 changed files with 146 additions and 105 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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