require 'spec_helper' describe 'Feed' do before do @feed_uri = File.expand_path(File.dirname(__FILE__) + '/data/feed.rss') @feed = Feed2Mail::Feed.new(@feed_uri) end context '#new' do it 'has an URI when created' do @feed.uri.should == @feed_uri end end context 'feeds' do it 'load all items' do @feed.should have(2).items end end end