summaryrefslogtreecommitdiff
path: root/test/rss/test_1.0.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_1.0.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_1.0.rb')
-rw-r--r--test/rss/test_1.0.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/rss/test_1.0.rb b/test/rss/test_1.0.rb
index c37bd84616..5a01e9f5c3 100644
--- a/test/rss/test_1.0.rb
+++ b/test/rss/test_1.0.rb
@@ -28,7 +28,7 @@ module RSS
xmldecl = doc.xml_decl
%w(version encoding).each do |x|
- assert_equal(instance_eval(x), xmldecl.send(x))
+ assert_equal(instance_eval(x), xmldecl.__send__(x))
end
assert_equal(standalone, !xmldecl.standalone.nil?)
@@ -69,7 +69,7 @@ module RSS
channel = RDF::Channel.new(about)
%w(title link description image items textinput).each do |x|
- channel.send("#{x}=", instance_eval(x))
+ channel.__send__("#{x}=", instance_eval(x))
end
doc = REXML::Document.new(make_RDF(channel.to_s))
@@ -187,7 +187,7 @@ module RSS
image = RDF::Image.new(about)
%w(title url link).each do |x|
- image.send("#{x}=", instance_eval(x))
+ image.__send__("#{x}=", instance_eval(x))
end
doc = REXML::Document.new(make_RDF(image.to_s))
@@ -212,7 +212,7 @@ module RSS
item = RDF::Item.new(about)
%w(title link description).each do |x|
- item.send("#{x}=", instance_eval(x))
+ item.__send__("#{x}=", instance_eval(x))
end
doc = REXML::Document.new(make_RDF(item.to_s))
@@ -238,7 +238,7 @@ module RSS
textinput = RDF::Textinput.new(about)
%w(title link name description).each do |x|
- textinput.send("#{x}=", instance_eval(x))
+ textinput.__send__("#{x}=", instance_eval(x))
end
doc = REXML::Document.new(make_RDF(textinput.to_s))