some fixes to janitor trials, implemented jan trial controller test

This commit is contained in:
albert
2011-01-14 16:45:10 -05:00
parent dceda1b073
commit 3d5873c182
15 changed files with 206 additions and 29 deletions

View File

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

View File

@@ -1,5 +1,5 @@
Factory.define(:user) do |f|
f.name {Faker::Name.first_name}
f.name {rand(1_000_000).to_s}
f.password "password"
f.password_hash {User.sha1("password")}
f.email {Faker::Internet.email}

View File

@@ -1,6 +1,4 @@
Factory.define(:user_feedback) do |f|
f.user {|x| x.association(:user)}
f.creator {|x| x.association(:user)}
f.is_positive true
f.body {Faker::Lorem.words}
end