summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-28 04:23:09 +0000
committerkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-28 04:23:09 +0000
commit1f84e89cf45158c2ddca44b7823bbcadbca9d732 (patch)
tree74322fcc1cc7d03a01f24da5882c08ba02f6785d /test
parenta3035403104c322b9326739bcc9c7ef7e3b45bcf (diff)
* lib/rss/rss.rb, test/rss/test_version.rb, NEWS: 0.2.2 -> 0.2.3.
* lib/rss/parser.rb, test/rss/test_parser.rb: supported "-" in tag name. Reported by Ray Chen. Thanks. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@14753 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/rss/test_parser.rb12
-rw-r--r--test/rss/test_version.rb2
2 files changed, 13 insertions, 1 deletions
diff --git a/test/rss/test_parser.rb b/test/rss/test_parser.rb
index 59458ef51b..2e8c9be4d3 100644
--- a/test/rss/test_parser.rb
+++ b/test/rss/test_parser.rb
@@ -46,5 +46,17 @@ EOR
assert_nil(RSS::Parser.parse(garbage_rss_file))
end
end
+
+ def test_parse_tag_includes_hyphen
+ assert_nothing_raised do
+ RSS::Parser.parse(make_RDF(<<-EOR))
+<xCal:x-calconnect-venue xmlns:xCal="urn:ietf:params:xml:ns:xcal" />
+#{make_channel}
+#{make_item}
+#{make_textinput}
+#{make_image}
+EOR
+ end
+ end
end
end
diff --git a/test/rss/test_version.rb b/test/rss/test_version.rb
index a602caf103..8f6771a4f3 100644
--- a/test/rss/test_version.rb
+++ b/test/rss/test_version.rb
@@ -3,7 +3,7 @@ require "rss-testcase"
module RSS
class TestVersion < TestCase
def test_version
- assert_equal("0.2.2", ::RSS::VERSION)
+ assert_equal("0.2.3", ::RSS::VERSION)
end
end
end