diff options
author | (no author) <(no author)@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-04-06 08:02:56 +0000 |
---|---|---|
committer | (no author) <(no author)@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-04-06 08:02:56 +0000 |
commit | 5923a2c0e770515a9c7144c50e09a32350695b00 (patch) | |
tree | 66882c2ac60d7d1b25bb49ee476cb829695aa906 /test/rss/test_accessor.rb | |
parent | 8e773df6d3b68caf2e56e6c75a8e48bf2ccc1bd3 (diff) |
This commit was manufactured by cvs2svn to create branch 'ruby_1_8'.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6109 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/rss/test_accessor.rb')
-rw-r--r-- | test/rss/test_accessor.rb | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/test/rss/test_accessor.rb b/test/rss/test_accessor.rb new file mode 100644 index 0000000000..08f565e596 --- /dev/null +++ b/test/rss/test_accessor.rb @@ -0,0 +1,26 @@ +# -*- tab-width: 2 -*- vim: ts=2 + +require "rss-testcase" + +require "rss/1.0" +require "rss/2.0" + +module RSS + class TestAccessor < TestCase + + def test_date + channel = Rss::Channel.new + channel.do_validate = false + channel.pubDate = nil + assert_nil(channel.pubDate) + + time = Time.now + channel.pubDate = time + assert_equal(time, channel.pubDate) + + channel.pubDate = nil + assert_nil(channel.pubDate) + end + + end +end |