serialize and array

75 views
Skip to first unread message

Antoine

unread,
Nov 1, 2009, 6:48:08 PM11/1/09
to factory_girl
Hello all,

Thank you for your work !!

I am using factory girl with this code :

class User < ActiveRecord::Base


serialize :right_edit


....
end


and also

Factory.define :user do |f|
f.name 'Roger'
f.login 'toutou'
f.email "ro...@mlk.com"
f.password "foobar"
f.password_confirmation { |u| u.password }
f.right_read ["FR"]
end

It doesn't work when I want to get the right_read value in my test ..

Do you know if you support seralize method with factory girl ??

Best

Antoine

Nathan Sutton

unread,
Nov 3, 2009, 10:11:08 AM11/3/09
to factor...@googlegroups.com, factory_girl
The attributes are named different things (right_edit and right_read),
so of course it won't work.

Nate Sutton

Ryan Angilly

unread,
Nov 3, 2009, 10:12:58 AM11/3/09
to factor...@googlegroups.com
:-)
Reply all
Reply to author
Forward
0 new messages