diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-10-22 04:48:34 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-10-22 04:48:34 +0000 |
commit | 0cfe16bc21697d135c35fcb329c49cdd728da7bb (patch) | |
tree | c9dcbb2556d0a80c2799cb158f6005a320810049 /test | |
parent | fbeb59ac288bf0cff10054088ced9fb39e8866f0 (diff) | |
download | ruby-0cfe16bc21697d135c35fcb329c49cdd728da7bb.tar.gz |
* ext/tk/lib/tk/font.rb, ext/tk/lib/tkextlib/ICONS/icons.rb,
ext/tk/sample/tkextlib/treectrl/demo.rb, lib/net/imap.rb,
lib/rss/parser.rb, test/rss/test_content.rb,
test/rss/test_dublincore.rb, test/rss/test_syndication.rb,
test/rss/test_trackback.rb, test/ruby/test_eval.rb,
test/socket/test_socket.rb, test/socket/test_udp.rb:
Object#fcall was renamed as Object#funcall.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9443 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/rss/test_content.rb | 8 | ||||
-rw-r--r-- | test/rss/test_dublincore.rb | 4 | ||||
-rw-r--r-- | test/rss/test_syndication.rb | 8 | ||||
-rw-r--r-- | test/rss/test_trackback.rb | 2 | ||||
-rw-r--r-- | test/ruby/test_eval.rb | 2 | ||||
-rw-r--r-- | test/socket/test_socket.rb | 8 | ||||
-rw-r--r-- | test/socket/test_udp.rb | 4 |
7 files changed, 18 insertions, 18 deletions
diff --git a/test/rss/test_content.rb b/test/rss/test_content.rb index e7e43885be..ae1ff6230f 100644 --- a/test/rss/test_content.rb +++ b/test/rss/test_content.rb @@ -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).fcall(meth)) - @rss.send(parent).fcall("#{meth}=", new_value[name].to_s) - assert_equal(new_value[name], @rss.send(parent).fcall(meth)) + assert_equal(value, @rss.send(parent).funcall(meth)) + @rss.send(parent).funcall("#{meth}=", new_value[name].to_s) + assert_equal(new_value[name], @rss.send(parent).funcall(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).fcall(meth)) + assert_equal(excepted, @rss.send(parent).funcall(meth)) end end diff --git a/test/rss/test_dublincore.rb b/test/rss/test_dublincore.rb index 614c25eebe..dcb4896c42 100644 --- a/test/rss/test_dublincore.rb +++ b/test/rss/test_dublincore.rb @@ -151,7 +151,7 @@ EOR @elems.each do |name, value| excepted = "<#{@prefix}:#{name}>#{value}</#{@prefix}:#{name}>" @parents.each do |parent| - assert_equal(excepted, @rss.send(parent).fcall("dc_#{name}_elements")) + assert_equal(excepted, @rss.send(parent).funcall("dc_#{name}_elements")) end excepted = Array.new(2, excepted).join("\n") @@ -161,7 +161,7 @@ EOR klass_name = "DublinCore#{Utils.to_class_name(name.to_s)}" klass = DublinCoreModel.const_get(klass_name) elems << klass.new(@rss.send(parent).send("dc_#{name}")) - assert_equal(excepted, @rss.send(parent).fcall("dc_#{name}_elements")) + assert_equal(excepted, @rss.send(parent).funcall("dc_#{name}_elements")) end end diff --git a/test/rss/test_syndication.rb b/test/rss/test_syndication.rb index cfe898256d..efbf24e080 100644 --- a/test/rss/test_syndication.rb +++ b/test/rss/test_syndication.rb @@ -74,9 +74,9 @@ EOR @elems.each do |name, value| @parents.each do |parent| - 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}")) + assert_equal(value, @rss.send(parent).funcall("sy_#{name}")) + @rss.send(parent).funcall("sy_#{name}=", new_value[name].to_s) + assert_equal(new_value[name], @rss.send(parent).funcall("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).fcall("sy_#{name}_element")) + assert_equal(excepted, @rss.send(parent).funcall("sy_#{name}_element")) end end diff --git a/test/rss/test_trackback.rb b/test/rss/test_trackback.rb index 2f92a0b1fe..a00ddc0ec1 100644 --- a/test/rss/test_trackback.rb +++ b/test/rss/test_trackback.rb @@ -114,7 +114,7 @@ EOR @parents.each do |parent| meth = "#{RSS::TRACKBACK_PREFIX}_#{name}_element" meth << "s" if name == :about - assert_equal(excepted, @rss.send(parent).fcall(meth)) + assert_equal(excepted, @rss.send(parent).funcall(meth)) end end diff --git a/test/ruby/test_eval.rb b/test/ruby/test_eval.rb index 273b3172b9..28e5cd2c25 100644 --- a/test/ruby/test_eval.rb +++ b/test/ruby/test_eval.rb @@ -146,7 +146,7 @@ class TestEval < Test::Unit::TestCase assert_nothing_raised { def temporally_method_for_test_eval_and_define_method(&block) lambda { - class << Object.new; self end.fcall(:define_method, :zzz, &block) + class << Object.new; self end.funcall(:define_method, :zzz, &block) } end v = eval("temporally_method_for_test_eval_and_define_method {}") diff --git a/test/socket/test_socket.rb b/test/socket/test_socket.rb index 5724938f6b..954a748b86 100644 --- a/test/socket/test_socket.rb +++ b/test/socket/test_socket.rb @@ -19,7 +19,7 @@ class TestBasicSocket < Test::Unit::TestCase n = s.getsockopt(Socket::SOL_SOCKET, Socket::SO_ERROR) assert_equal([0].pack("i"), n) val = Object.new - class << val; self end.fcall(:define_method, :to_int) { + class << val; self end.funcall(:define_method, :to_int) { s.close Socket::SO_TYPE } @@ -34,7 +34,7 @@ class TestBasicSocket < Test::Unit::TestCase linger = [0, 0].pack("ii") val = Object.new - class << val; self end.fcall(:define_method, :to_str) { + class << val; self end.funcall(:define_method, :to_str) { s.close linger } @@ -47,7 +47,7 @@ class TestBasicSocket < Test::Unit::TestCase end val = Object.new - class << val; self end.fcall(:define_method, :to_int) { + class << val; self end.funcall(:define_method, :to_int) { s.close Socket::SO_LINGER } @@ -61,7 +61,7 @@ class TestBasicSocket < Test::Unit::TestCase def test_listen s = nil log = Object.new - class << log; self end.fcall(:define_method, :to_int) { + class << log; self end.funcall(:define_method, :to_int) { s.close 2 } diff --git a/test/socket/test_udp.rb b/test/socket/test_udp.rb index 3f5f55a467..22eee783dd 100644 --- a/test/socket/test_udp.rb +++ b/test/socket/test_udp.rb @@ -9,7 +9,7 @@ class TestUDPSocket < Test::Unit::TestCase def test_connect # [ruby-dev:25045] s = UDPSocket.new host = Object.new - class << host; self end.fcall(:define_method, :to_str) { + class << host; self end.funcall(:define_method, :to_str) { s.close "127.0.0.1" } @@ -21,7 +21,7 @@ class TestUDPSocket < Test::Unit::TestCase def test_bind # [ruby-dev:25057] s = UDPSocket.new host = Object.new - class << host; self end.fcall(:define_method, :to_str) { + class << host; self end.funcall(:define_method, :to_str) { s.close "127.0.0.1" } |