diff options
author | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-03-21 10:03:17 +0000 |
---|---|---|
committer | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-03-21 10:03:17 +0000 |
commit | 1a3cfaa1dfada00b330734c4bbeb45c4c22f6d34 (patch) | |
tree | fd5dfb00cf7a485e98ae179947b61093f6820a21 /test/rss/test_accessor.rb | |
parent | 4fb4fe6591a9a705c44bc1951fdbf21aa83dce67 (diff) | |
download | ruby-1a3cfaa1dfada00b330734c4bbeb45c4c22f6d34.tar.gz ruby-1a3cfaa1dfada00b330734c4bbeb45c4c22f6d34.tar.xz ruby-1a3cfaa1dfada00b330734c4bbeb45c4c22f6d34.zip |
* test/rss/*: Test::Unit::TestCase -> RSS::TestCase and
Test::Unit::Assertions -> RSS::Assertions.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5991 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/rss/test_accessor.rb')
-rw-r--r-- | test/rss/test_accessor.rb | 37 |
1 files changed, 19 insertions, 18 deletions
diff --git a/test/rss/test_accessor.rb b/test/rss/test_accessor.rb index b7dcb8022..08f565e59 100644 --- a/test/rss/test_accessor.rb +++ b/test/rss/test_accessor.rb @@ -1,25 +1,26 @@ # -*- tab-width: 2 -*- vim: ts=2 -require "test/unit" +require "rss-testcase" + require "rss/1.0" require "rss/2.0" -require "common" - -class TestAccessor < Test::Unit::TestCase - include TestRSSMixin - - 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) +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 |