summaryrefslogtreecommitdiff
path: root/test/rss/test_content.rb
diff options
context:
space:
mode:
authorkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-06-17 00:49:38 +0000
committerkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-06-17 00:49:38 +0000
commite85f8c782958c0a3e6ea296401a08d5fe9f8e550 (patch)
tree5d101a43288cc7927f58d31f06327a5b3262fcb6 /test/rss/test_content.rb
parentd41bea59c44d97c3936ca806bf05e6221b66dce0 (diff)
* lib/rss, test/rss: backported from trunk. (2005-11-16 - now)
* lib/rss/: use #__send__ instead of #send. * test/rss/: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10294 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/rss/test_content.rb')
-rw-r--r--test/rss/test_content.rb9
1 files changed, 4 insertions, 5 deletions
diff --git a/test/rss/test_content.rb b/test/rss/test_content.rb
index 77cd1c7005..70d456fa2f 100644
--- a/test/rss/test_content.rb
+++ b/test/rss/test_content.rb
@@ -61,21 +61,20 @@ EOR
@elems.each do |name, value|
@parents.each do |parent|
meth = "#{RSS::CONTENT_PREFIX}_#{name}"
- assert_equal(value, @rss.send(parent).send(meth))
- @rss.send(parent).send("#{meth}=", new_value[name].to_s)
- assert_equal(new_value[name], @rss.send(parent).send(meth))
+ assert_equal(value, @rss.__send__(parent).__send__(meth))
+ @rss.__send__(parent).__send__("#{meth}=", new_value[name].to_s)
+ assert_equal(new_value[name], @rss.__send__(parent).__send__(meth))
end
end
end
def test_to_s
-
@elems.each do |name, value|
excepted = "<#{@prefix}:#{name}>#{CGI.escapeHTML(value)}</#{@prefix}:#{name}>"
@parents.each do |parent|
meth = "#{RSS::CONTENT_PREFIX}_#{name}_element"
- assert_equal(excepted, @rss.send(parent).send(meth))
+ assert_equal(excepted, @rss.__send__(parent).__send__(meth))
end
end