Re: [rspec-users] difference between validate and validate_on_create

2011-04-28 Thread Justin Ko
On Thu, Apr 28, 2011 at 2:06 PM, Sergio Ruiz wrote: > i just ran into a problem with some test, and i am not exactly sure why, > but the difference happened when i changed my model validation from: > > validate :custom_validation > > to: > > validate_on_create :custom_validation > > can someone g

Re: [rspec-users] difference between validate and validate_on_create

2011-04-28 Thread Sergio Ruiz
thanks, nick.. i looks like i need to hunt around a bit more as to what was causing my problem.. thanks! -- Posted via http://www.ruby-forum.com/. ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] difference between validate and validate_on_create

2011-04-28 Thread Rick DeNatale
On Thu, Apr 28, 2011 at 3:06 PM, Sergio Ruiz wrote: > i just ran into a problem with some test, and i am not exactly sure why, > but the difference happened when i changed my model validation from: > > validate :custom_validation > > to: > > validate_on_create :custom_validation > > can someone gi

[rspec-users] difference between validate and validate_on_create

2011-04-28 Thread Sergio Ruiz
i just ran into a problem with some test, and i am not exactly sure why, but the difference happened when i changed my model validation from: validate :custom_validation to: validate_on_create :custom_validation can someone give me any ideas on where in the chain the validation takes place? th