Displaying 1 result from an estimated 1 matches for "tc_check".
Did you mean:
t_check
2011 Jan 17
4
Factory Girl and attr_accessor with validation
I have a problem with a recent change to one of my models when created
via Factory.create.
class User < ActiveRecord::Base
attr_accessor :tc_check
validates :tc_check, :presence => true, :acceptance => true
...
end
The following definition fails, when calling
Factory.create(:valid_user)
Factory.define :valid_user, :class => User do |u|
u.email ''barry.white-J0of1frlU80@public.gmane.org''
u.phone_number ...