diff options
author | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-02-13 14:21:21 +0000 |
---|---|---|
committer | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-02-13 14:21:21 +0000 |
commit | 5e40d3c34cf266558e1ed8f368b6f985c578ae2b (patch) | |
tree | be55e41a95ba2a3894b88556a8bf5f978a1f39a3 /test/rss/test_maker_2.0.rb | |
parent | f7f23c5b3e6cc349f6557537096cbff9089f8ace (diff) | |
download | ruby-5e40d3c34cf266558e1ed8f368b6f985c578ae2b.tar.gz ruby-5e40d3c34cf266558e1ed8f368b6f985c578ae2b.tar.xz ruby-5e40d3c34cf266558e1ed8f368b6f985c578ae2b.zip |
* lib/rss/dublincore.rb (RSS::DublicCoreModel#date{,=}): added
convenient methods.
* lib/rss/0.9.rb (RSS::Rss::Channel#date{,=}): ditto.
* lib/rss/2.0.rb (RSS::Rss::Channel::Item#date{,=}): ditto.
* test/rss/: added tests for the convenient methods.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7965 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/rss/test_maker_2.0.rb')
-rw-r--r-- | test/rss/test_maker_2.0.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/rss/test_maker_2.0.rb b/test/rss/test_maker_2.0.rb index e2d5e3228..b4d402a83 100644 --- a/test/rss/test_maker_2.0.rb +++ b/test/rss/test_maker_2.0.rb @@ -110,6 +110,7 @@ module RSS assert_equal(rating, channel.rating) assert_equal(docs, channel.docs) assert_equal(pubDate, channel.pubDate) + assert_equal(pubDate, channel.date) assert_equal(lastBuildDate, channel.lastBuildDate) skipDays.each_with_index do |day, i| @@ -385,6 +386,7 @@ module RSS assert_equal("#{author}#{i}", item.author) assert_equal("#{comments}#{i}", item.comments) assert_equal(pubDate, item.pubDate) + assert_equal(pubDate, item.date) end rss = RSS::Maker.make("2.0") do |maker| @@ -411,6 +413,7 @@ module RSS assert_equal("#{author}#{i}", item.author) assert_equal("#{comments}#{i}", item.comments) assert_equal(pubDate, item.pubDate) + assert_equal(pubDate, item.date) end end |