diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-02-25 14:59:21 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-02-25 14:59:21 +0000 |
commit | 9d6798932f213cd1031e160c23f81188e9ce2bbb (patch) | |
tree | 01a2d39c8dffcc1360cc813b42ea21b13a4a71b3 /test/ruby/envutil.rb | |
parent | c75f360bdf10f1c8847cbb8d0c7d0a68e35cf7d5 (diff) | |
download | ruby-9d6798932f213cd1031e160c23f81188e9ce2bbb.tar.gz |
envutil.rb: rename member
* test/ruby/envutil.rb (Test::Unit::Assertions::AssertFile): rename
member to get rid of conflict with a method of Assertions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39497 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/envutil.rb')
-rw-r--r-- | test/ruby/envutil.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/ruby/envutil.rb b/test/ruby/envutil.rb index 02215120dd..a8f3874e9f 100644 --- a/test/ruby/envutil.rb +++ b/test/ruby/envutil.rb @@ -317,7 +317,7 @@ eom AssertFile end - class << (AssertFile = Struct.new(:message).new) + class << (AssertFile = Struct.new(:failure_message).new) include Assertions def assert_file_predicate(predicate, *args) if /\Anot_/ =~ predicate @@ -329,13 +329,13 @@ eom mesg = "Expected file " << args.shift.inspect mesg << mu_pp(args) unless args.empty? mesg << "#{neg} to be #{predicate}" - mesg << " #{message}" if message + mesg << " #{failure_message}" if failure_message assert(result, mesg) end alias method_missing assert_file_predicate def for(message) - clone.tap {|a| a.message = message} + clone.tap {|a| a.failure_message = message} end end end |