pauldix/feedzirra — Issue #70: Feed.update returns a single feed if passed an array of 1 and Array if passed array of more
Author: ittayd
Created: 2011-10-25 15:14:17+00:00
State: open

```irb
> feeds = Feedzirra::Feed.fetch_and_parse(['http://rss.cnn.com/rss/edition.rss'])
[.. a lot of output ..]
> updated = Feedzirra::Feed.update(feeds.values)
[.. a lot of output ..]
> updated.class
=> Feedzirra::Parser::RSS
> feeds = Feedzirra::Feed.fetch_and_parse(['http://rss.cnn.com/rss/edition.rss', 'http://rss.cnn.com/rss/edition_world.rss'])
[.. a lot of output ..]
> updated = Feedzirra::Feed.update(feeds.values)
[.. a lot of output ..]
> updated.class
=> Array
```

The documentation says it should return: A Hash if multiple Feeds are passed. The key will be the URL, and the value the updated Feed object.