mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/rss/maker/base.rb, lib/rss/maker/1.0.rb, lib/rss/maker/feed.rb,
test/rss/test_maker_1.0.rb, test/rss/test_maker_atom_feed.rb: RSS 1.0 and Atom feed maker treat maker.channel.language as maker.channel.dc_language. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23445 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
28e7beb54c
commit
277f48de57
6 changed files with 58 additions and 0 deletions
|
|
@ -95,6 +95,26 @@ module RSS
|
|||
assert_equal(rss.textinput.about, channel.textinput.resource)
|
||||
end
|
||||
|
||||
def test_channel_language
|
||||
about = "http://hoge.com"
|
||||
title = "fugafuga"
|
||||
link = "http://hoge.com"
|
||||
description = "fugafugafugafuga"
|
||||
language = "ja"
|
||||
|
||||
rss = RSS::Maker.make("1.0") do |maker|
|
||||
maker.channel.about = about
|
||||
maker.channel.title = title
|
||||
maker.channel.link = link
|
||||
maker.channel.description = description
|
||||
maker.channel.language = language
|
||||
|
||||
setup_dummy_item(maker)
|
||||
end
|
||||
channel = rss.channel
|
||||
assert_equal(language, channel.dc_language)
|
||||
end
|
||||
|
||||
def test_not_valid_channel
|
||||
about = "http://hoge.com"
|
||||
title = "fugafuga"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue