summaryrefslogtreecommitdiff
path: root/test/rss/test_content.rb
diff options
context:
space:
mode:
authorkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-11-23 09:49:02 +0000
committerkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-11-23 09:49:02 +0000
commit73cd292fcd50f301180c536461001df2f3f9c7e9 (patch)
tree7c43d8cf9eb336b45ed84608ff254beca7fdc9e4 /test/rss/test_content.rb
parent4cfc20b20d70280c293927c9d4ccc008c4e00c8a (diff)
* lib/rss/: use #__send__ instead of #send.
* test/rss/: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9599 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 ae1ff6230f..b0ecbd4cf3 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).funcall(meth))
- @rss.send(parent).funcall("#{meth}=", new_value[name].to_s)
- assert_equal(new_value[name], @rss.send(parent).funcall(meth))
+ assert_equal(value, @rss.__send__(parent).funcall(meth))
+ @rss.__send__(parent).funcall("#{meth}=", new_value[name].to_s)
+ assert_equal(new_value[name], @rss.__send__(parent).funcall(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).funcall(meth))
+ assert_equal(excepted, @rss.__send__(parent).funcall(meth))
end
end