Skip to content

Commit

Permalink
* test/rss/test_image.rb: shared name space configuration.
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10314 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
kou committed Jun 18, 2006
1 parent c849d26 commit a88ae90
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions ChangeLog
@@ -1,3 +1,7 @@
Sun Jun 18 18:22:04 2006 Kouhei Sutou <kou@cozmixng.org>

* test/rss/test_image.rb: shared name space configuration.

Sun Jun 18 18:13:25 2006 Kouhei Sutou <kou@cozmixng.org>

* lib/rss/rss.rb: improved ignore_unknown_element
Expand Down
8 changes: 4 additions & 4 deletions test/rss/test_image.rb
Expand Up @@ -52,11 +52,11 @@ def setup
items << make_item(image_item)
end

ns = {
@ns = {
@prefix => @uri,
DC_PREFIX => DC_URI,
}
@rss_source = make_RDF(<<-EOR, ns)
@rss_source = make_RDF(<<-EOR, @ns)
#{make_channel(@channel_nodes)}
#{make_image}
#{items}
Expand All @@ -70,9 +70,9 @@ def test_parser
assert_nothing_raised do
Parser.parse(@rss_source)
end

assert_too_much_tag("favicon", "channel") do
Parser.parse(make_RDF(<<-EOR, {@prefix => @uri}))
Parser.parse(make_RDF(<<-EOR, @ns))
#{make_channel(@channel_nodes * 2)}
#{make_item}
EOR
Expand Down

0 comments on commit a88ae90

Please sign in to comment.