Fixed a silly error in pubDate generation (RSS feed)
This commit is contained in:
parent
e6624b92d3
commit
bb1425c6f7
2 changed files with 12 additions and 1 deletions
|
@ -475,6 +475,17 @@ class WikiControllerTest < Test::Unit::TestCase
|
|||
assert r.body.include?('<title>Home Page</title>')
|
||||
assert r.body.include?('<title>Title&With&Ampersands</title>')
|
||||
end
|
||||
|
||||
def test_rss_timestamp
|
||||
setup_wiki_with_three_pages
|
||||
|
||||
new_page = @wiki.write_page('wiki1', 'PageCreatedAtTheBeginningOfCtime',
|
||||
'Created on 1 Jan 1970 at 0:00:00 Z', Time.at(0), Author.new('NitPicker', '127.0.0.3'))
|
||||
|
||||
r = process 'rss_with_headlines', 'web' => 'wiki1'
|
||||
|
||||
assert_template_xpath_match '/rss/channel/item/pubDate[4]', "Thu, 01 Jan 1970 00:00:00 Z"
|
||||
end
|
||||
|
||||
def test_save
|
||||
r = process 'save', 'web' => 'wiki1', 'id' => 'NewPage', 'content' => 'Contents of a new page',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue