[Rails] Re: assert_valid in unit tests after upgrade to rails 2.3 doesn't work

2009-05-29 Thread Tonypm
hi, just upgrading to 2.3.2 and getting same, did you resolve this at all? Tonypm --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to

[Rails] Re: assert_valid in unit tests after upgrade to rails 2.3 doesn't work

2009-05-29 Thread Tonypm
Ok, so Rails Guide http://guides.rubyonrails.org/testing.html para 3.5 says it exists - I guess the guide needs amending? It was deprecated at 2.2.2 - assert_valid is deprecated. Use assert record.valid? instead see http://github.com/rails/rails/commit/d4754677a34d34d4a0955a04f2cc6571bdc5e82d

[Rails] Re: assert_valid in unit tests after upgrade to rails 2.3 doesn't work

2009-04-14 Thread Mohamed Aslam
Having the same problem here. But still didn't find any solution. On Apr 7, 11:34 am, Constantin Gavrilescu comisarulmoldo...@gmail.com wrote:   def test_valid     assert_valid State.first   end  Error: test_valid(StateTest): NoMethodError: undefined method `assert_valid' for