Sha256: 3fec7592d9f134518c0e84bd01fee1d6ab47fdb2ed9d2d7b4a5b71ef87701278
Contents?: true
Size: 1012 Bytes
Versions: 3
Compression:
Stored size: 1012 Bytes
Contents
# -*- encoding: utf-8 -*- require 'spec_helper' describe NewsFeed do fixtures :news_feeds it "should get content", :vcr => true do feed = news_feeds(:news_feed_00001) feed.force_reload feed.content.should be_truthy end it "should not get content if the feed is invalid", :vcr => true do feed = news_feeds(:news_feed_00002) feed.force_reload feed.content.should be_nil end it "should reload content", :vcr => true do news_feeds(:news_feed_00001).force_reload.should be_truthy end it "should fetch feeds", :vcr => true do NewsFeed.fetch_feeds.should be_truthy end end # == Schema Information # # Table name: news_feeds # # id :integer not null, primary key # library_group_id :integer default(1), not null # title :string(255) # url :string(255) # body :text # position :integer # created_at :datetime not null # updated_at :datetime not null #
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
enju_news-0.1.0.pre8 | spec/models/news_feed_spec.rb |
enju_news-0.1.0.pre7 | spec/models/news_feed_spec.rb |
enju_news-0.1.0.pre6 | spec/models/news_feed_spec.rb |