summaryrefslogtreecommitdiff
path: root/test/rss/test_image.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_image.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_image.rb')
-rw-r--r--test/rss/test_image.rb40
1 files changed, 20 insertions, 20 deletions
diff --git a/test/rss/test_image.rb b/test/rss/test_image.rb
index 8e62085..e268205 100644
--- a/test/rss/test_image.rb
+++ b/test/rss/test_image.rb
@@ -86,21 +86,21 @@ EOR
%w(size image:size large),
%w(image_size image:size medium),
].each do |name, full_name, new_value|
- assert_equal(@favicon_attrs[full_name], favicon.send(name))
- favicon.send("#{name}=", new_value)
- assert_equal(new_value, favicon.send(name))
- favicon.send("#{name}=", @favicon_attrs[full_name])
- assert_equal(@favicon_attrs[full_name], favicon.send(name))
+ assert_equal(@favicon_attrs[full_name], favicon.__send__(name))
+ favicon.__send__("#{name}=", new_value)
+ assert_equal(new_value, favicon.__send__(name))
+ favicon.__send__("#{name}=", @favicon_attrs[full_name])
+ assert_equal(@favicon_attrs[full_name], favicon.__send__(name))
end
[
%w(dc_title dc:title sample-favicon),
].each do |name, full_name, new_value|
- assert_equal(@favicon_contents[full_name], favicon.send(name))
- favicon.send("#{name}=", new_value)
- assert_equal(new_value, favicon.send(name))
- favicon.send("#{name}=", @favicon_contents[full_name])
- assert_equal(@favicon_contents[full_name], favicon.send(name))
+ assert_equal(@favicon_contents[full_name], favicon.__send__(name))
+ favicon.__send__("#{name}=", new_value)
+ assert_equal(new_value, favicon.__send__(name))
+ favicon.__send__("#{name}=", @favicon_contents[full_name])
+ assert_equal(@favicon_contents[full_name], favicon.__send__(name))
end
end
@@ -112,11 +112,11 @@ EOR
%w(about rdf:about http://example.com/image.png),
%w(resource rdf:resource http://example.com/),
].each do |name, full_name, new_value|
- assert_equal(attrs[full_name], image_item.send(name))
- image_item.send("#{name}=", new_value)
- assert_equal(new_value, image_item.send(name))
- image_item.send("#{name}=", attrs[full_name])
- assert_equal(attrs[full_name], image_item.send(name))
+ assert_equal(attrs[full_name], image_item.__send__(name))
+ image_item.__send__("#{name}=", new_value)
+ assert_equal(new_value, image_item.__send__(name))
+ image_item.__send__("#{name}=", attrs[full_name])
+ assert_equal(attrs[full_name], image_item.__send__(name))
end
[
@@ -126,11 +126,11 @@ EOR
["image_height", "image:height", 88],
["dc_title", "dc:title", "sample-image"],
].each do |name, full_name, new_value|
- assert_equal(contents[full_name], image_item.send(name))
- image_item.send("#{name}=", new_value)
- assert_equal(new_value, image_item.send(name))
- image_item.send("#{name}=", contents[full_name])
- assert_equal(contents[full_name], image_item.send(name))
+ assert_equal(contents[full_name], image_item.__send__(name))
+ image_item.__send__("#{name}=", new_value)
+ assert_equal(new_value, image_item.__send__(name))
+ image_item.__send__("#{name}=", contents[full_name])
+ assert_equal(contents[full_name], image_item.__send__(name))
end
end
end