some fixes to janitor trials, implemented jan trial controller test
This commit is contained in:
3
test/factories/janitor_trial.rb
Normal file
3
test/factories/janitor_trial.rb
Normal file
@@ -0,0 +1,3 @@
|
||||
Factory.define(:janitor_trial) do |f|
|
||||
f.user {|x| x.association(:user)}
|
||||
end
|
||||
@@ -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}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user