diff options
| author | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-06-17 00:49:38 +0000 |
|---|---|---|
| committer | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-06-17 00:49:38 +0000 |
| commit | 9dc733281997c4c6668dfd02561c0d9621988759 (patch) | |
| tree | 5d101a43288cc7927f58d31f06327a5b3262fcb6 /test/rss/rss-assertions.rb | |
| parent | 31a4ef12b792af7e7959bc474fbf6b40d8c25c3d (diff) | |
| download | ruby-9dc733281997c4c6668dfd02561c0d9621988759.tar.gz ruby-9dc733281997c4c6668dfd02561c0d9621988759.tar.xz ruby-9dc733281997c4c6668dfd02561c0d9621988759.zip | |
* lib/rss, test/rss: backported from trunk. (2005-11-16 - now)
* lib/rss/: use #__send__ instead of #send.
* test/rss/: ditto.
git-svn-id: http://svn.ruby-lang.org/repos/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.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/rss/rss-assertions.rb b/test/rss/rss-assertions.rb index d8e597cd5..435f893e8 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 |
