> Assuming this is a unit test then I think it should be
> application.dob_day = "01"  etc.
> Again the attriutes are dob_day etc not date_of_birth_day.

Thanks for that Colin,

def test_should_make_date
applicant = Applicant.new(valid_applicant_attributes(:date_of_birth => 
""))
applicant.dob_day = "01"
applicant.dob_month = "01"
applicant.dob_year = "1999"
assert_equal "01-01-1999", applicant.date_of_birth
end

works (as you might expect) absolutely fine.

It's been a long day already, I think I need some more coffee.
Thanks for taking the time to read through my question and find my typo.

Jim

-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to