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 | abe876ed4e69d08868373051bebee6ab7e303954 (patch) | |
tree | fd5dfb00cf7a485e98ae179947b61093f6820a21 /test/rss/test_accessor.rb | |
parent | cfbe158faea79c6c61f04e99d1309e26bf9f1e54 (diff) |
* test/rss/*: Test::Unit::TestCase -> RSS::TestCase and
Test::Unit::Assertions -> RSS::Assertions.
git-svn-id: svn+ssh://ci.ruby-lang.org/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 b7dcb80226..08f565e596 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 |