http://sports.yahoo.com/ncaaf/teams/aad/ical.ics was just an example of
a link to download iCalendar feed, it can be from anywhere so I used
feed_1, feed_2...feed_n for generic term.
This worked:
def test_updatefeed
feed = feeds(:feed_1)
feed.update_attribute :lastupdate, 1.hour.ago # spike
Feed.updatefeed(feed.id)
feed.reload
assert 1.second.ago < feed.lastupdate &&
feed.lastupdate < 1.second.from_now
end
Thanks
--
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
-~----------~----~----~----~------~----~------~--~---