Justin Bailey
2005-Nov-03 01:13 UTC
rfc822 method missing from Time objects during functional tests?
I am developing a set of functional tests for an app I''ve created, which includes testing an RSS feed. This feed loops through a set of posts and, besides other things, writes out the published date of the post in RFC822 format. This is all contained in a nice XML builder file: for post in @posts xml.item do ... xml.pubDate post.date_posted.rfc822 ... end end That works fine on my development and production sites. However, when I run this action during a functional test, the "rfc822" method comes up missing! I checked my YAML and it''s getting the date in their correctly. The date_posted object is of class ''Time'' and has the correct data in it. It just doesn''t have this rfc822 method. Has anyone else seen this? Is it a bug in rails? BTW I''m using the rails .13.1. against a MySQL database. Thanks for any help! Justin p.s. Please CC me as I am not currently subscribed to the list.