Commit 04be0132d4321dee58494626386fc19d18fd26cd
Committed by
Daniela Feitosa
1 parent
a64cb73c
Exists in
master
and in
29 other branches
Padronize Gallery::to_html() and makes rss happy
(ActionItem1867)
Showing
2 changed files
with
11 additions
and
1 deletions
Show diff stats
app/models/gallery.rb
test/unit/feed_writer_test.rb
... | ... | @@ -14,6 +14,16 @@ class FeedWriterTest < Test::Unit::TestCase |
14 | 14 | assert_match('/tagger/' + articles.first.slug, feed) |
15 | 15 | end |
16 | 16 | |
17 | + should 'generate feed with a gallery' do | |
18 | + articles = [] | |
19 | + profile = fast_create(:profile, :identifier => "tagger") | |
20 | + articles << fast_create(:gallery, :name => 'my pics', :profile_id => profile.id) | |
21 | + writer = FeedWriter.new | |
22 | + | |
23 | + feed = writer.write(articles) | |
24 | + assert_match('my pics', feed) | |
25 | + end | |
26 | + | |
17 | 27 | should 'use title, link and description' do |
18 | 28 | writer = FeedWriter.new |
19 | 29 | rss = writer.write([], :title => "my title", :description => "my description", :link => "http://example.com/") | ... | ... |