summaryrefslogtreecommitdiff
path: root/test/rss/rss-assertions.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/rss-assertions.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/rss-assertions.rb')
-rw-r--r--test/rss/rss-assertions.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/rss/rss-assertions.rb b/test/rss/rss-assertions.rb
index d8e597cd5a..435f893e8d 100644
--- a/test/rss/rss-assertions.rb
+++ b/test/rss/rss-assertions.rb
@@ -15,10 +15,10 @@ module RSS
module Assertions
def assert_parse(rss, assert_method, *args)
- send("assert_#{assert_method}", *args) do
+ __send__("assert_#{assert_method}", *args) do
::RSS::Parser.parse(rss)
end
- send("assert_#{assert_method}", *args) do
+ __send__("assert_#{assert_method}", *args) do
::RSS::Parser.parse(rss, false).validate
end
end
@@ -119,7 +119,7 @@ module RSS
_wrap_assertion do
n_attrs = normalized_attrs(attrs)
::RSS::XMLStyleSheet::ATTRIBUTES.each do |name|
- assert_equal(n_attrs[name], xsl.send(name))
+ assert_equal(n_attrs[name], xsl.__send__(name))
end
end
end