Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 23 lines (19 sloc) 0.633 kB
5dc615d @jnunemaker Added tests for link and feed.
authored
1 require 'test_helper'
2
3 class FeedTest < Test::Unit::TestCase
4 context "Initialization" do
5 setup do
6 @body = fixture_file('railstips.html')
7 FakeWeb.register_uri(:get, "http://feeds.feedburner.com/railstips", :string => @body)
8 @feed = Columbus::Feed.new('http://feeds.feedburner.com/railstips', 'Railstips')
9 end
10
11 should "accept a url" do
12 @feed.url.should == 'http://feeds.feedburner.com/railstips'
13 end
14
15 should "accept a title" do
16 @feed.title = 'Railstips'
17 end
18
19 should "set body to feed endpoint response body" do
20 @feed.body.should == @body
21 end
22 end
23 end
Something went wrong with that request. Please try again.