summaryrefslogtreecommitdiff
path: root/test/mkmf
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-03-08 07:02:37 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-03-08 07:02:37 +0000
commit3d881966322458abe94cfb409b1606ceaaad49d7 (patch)
treebdc9710522b0affa3edd90471556a9c4af3b47ff /test/mkmf
parent4a3970c2118e2c4a4558431886dde02cd7ad5b7e (diff)
assertions.rb: allow proc
* lib/test/unit/assertions.rb (Test::Unit::Assertions#message): convert msg by call if it is a proc, as well as assert. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39638 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/mkmf')
-rw-r--r--test/mkmf/base.rb9
1 files changed, 1 insertions, 8 deletions
diff --git a/test/mkmf/base.rb b/test/mkmf/base.rb
index 7df1e8961f..f4f00ed534 100644
--- a/test/mkmf/base.rb
+++ b/test/mkmf/base.rb
@@ -10,9 +10,6 @@ $extout_prefix = "$(extout)$(target_prefix)/"
class TestMkmf < Test::Unit::TestCase
MKMFLOG = proc {File.read("mkmf.log") rescue ""}
- class << MKMFLOG
- alias to_s call
- end
class Capture
attr_accessor :origin
@@ -54,11 +51,7 @@ class TestMkmf < Test::Unit::TestCase
attr_reader :stdout
def mkmflog(msg)
- log = proc {MKMFLOG[] << msg}
- class << log
- alias to_s call
- end
- log
+ proc {MKMFLOG[] << msg}
end
def setup