1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* test/rss/test_content.rb, test/rss/test_syndication.rb: use fcall

instead of send in order to override visibility.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9308 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2005-09-24 23:20:15 +00:00
parent 4a774a787f
commit 9b9a3dc54e
3 changed files with 13 additions and 8 deletions

View file

@ -1,3 +1,8 @@
Sun Sep 25 08:19:53 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
* test/rss/test_content.rb, test/rss/test_syndication.rb: use fcall
instead of send in order to override visibility.
Sun Sep 25 01:46:43 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
* misc/ruby-mode.el (ruby-calculate-indent): arrange deep-indent

View file

@ -61,9 +61,9 @@ EOR
@elems.each do |name, value|
@parents.each do |parent|
meth = "#{RSS::CONTENT_PREFIX}_#{name}"
assert_equal(value, @rss.send(parent).send(meth))
@rss.send(parent).send("#{meth}=", new_value[name].to_s)
assert_equal(new_value[name], @rss.send(parent).send(meth))
assert_equal(value, @rss.send(parent).fcall(meth))
@rss.send(parent).fcall("#{meth}=", new_value[name].to_s)
assert_equal(new_value[name], @rss.send(parent).fcall(meth))
end
end
@ -75,7 +75,7 @@ EOR
excepted = "<#{@prefix}:#{name}>#{CGI.escapeHTML(value)}</#{@prefix}:#{name}>"
@parents.each do |parent|
meth = "#{RSS::CONTENT_PREFIX}_#{name}_element"
assert_equal(excepted, @rss.send(parent).send(meth))
assert_equal(excepted, @rss.send(parent).fcall(meth))
end
end

View file

@ -74,9 +74,9 @@ EOR
@elems.each do |name, value|
@parents.each do |parent|
assert_equal(value, @rss.send(parent).send("sy_#{name}"))
@rss.send(parent).send("sy_#{name}=", new_value[name].to_s)
assert_equal(new_value[name], @rss.send(parent).send("sy_#{name}"))
assert_equal(value, @rss.send(parent).fcall("sy_#{name}"))
@rss.send(parent).fcall("sy_#{name}=", new_value[name].to_s)
assert_equal(new_value[name], @rss.send(parent).fcall("sy_#{name}"))
end
end
@ -103,7 +103,7 @@ EOR
@elems.each do |name, value|
excepted = "<#{@prefix}:#{name}>#{value}</#{@prefix}:#{name}>"
@parents.each do |parent|
assert_equal(excepted, @rss.send(parent).send("sy_#{name}_element"))
assert_equal(excepted, @rss.send(parent).fcall("sy_#{name}_element"))
end
end