From: Sarah Allen Date: 2009-03-03T03:41:40+09:00 Subject: Re: passing a method as a paramter Rick Denatale wrote: > Yes, you need to pass a symbol, just as the error is trying to tell you: > > def test_should_not_create_user_unless_default_fields > assert_required_fields :create, :email, :lastname, :password > end > > I'm assuming that this is in the unit test for the User model. So, how would it magically know to call create on User and not some other class? as I might expect, I get this error: 1) Error: test_should_not_create_user_unless_default_fields(UserTest): NoMethodError: undefined method `create' for # Thanks, Sarah:w -- Posted via http://www.ruby-forum.com/.