make functional tests for context controller run

This commit is contained in:
Reinier Balt 2012-04-19 15:31:18 +02:00
parent 76340b780c
commit 59a4d5ede0
10 changed files with 225 additions and 182 deletions

View file

@ -0,0 +1,12 @@
atom_feed do |feed|
feed.title(@feed_title)
feed.subtitle(@feed_description)
feed.updated(@all_contexts.last.updated_at)
@all_contexts.each do |context|
feed.entry(context) do |entry|
entry.title(h(context.name))
entry.content(context_summary(context, count_undone_todos_phrase(context)), :type => :html)
end
end
end

View file

@ -0,0 +1,20 @@
xml.instruct! :xml, :version => "1.0"
xml.rss :version => "2.0" do
xml.channel do
xml.title @feed_title
xml.description @feed_description
xml.link contexts_url
xml.language 'en-us'
xml.ttl 40
@all_contexts.each do |context|
xml.item do
xml.title h(context.title)
xml.description context_summary(context, count_undone_todos_phrase(context))
xml.pubDate context.created_at.to_s(:rfc822)
xml.link context_url(context)
xml.guid context_url(context)
end
end
end
end