aboutsummaryrefslogtreecommitdiffstats
path: root/test/rss/test_accessor.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/rss/test_accessor.rb')
-rw-r--r--test/rss/test_accessor.rb37
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