mirror of
https://github.com/ruby/ruby.git
synced 2025-09-19 10:33:58 +02:00
merge revision(s) 50141: [Backport #11021]
* lib/fileutils.rb (FileUtils#mv): show the exact target path in the error message instead of the destination parent directory name. patched by Joao Britto <jabcalves AT gmail.com> at [ruby-core:68706]. [Bug #11021] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@50485 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
0224bb0385
commit
a1f41cafe8
4 changed files with 11 additions and 3 deletions
|
@ -416,7 +416,8 @@ class TestFileUtils < Test::Unit::TestCase
|
|||
|
||||
mkdir 'tmp/tmpdir'
|
||||
mkdir_p 'tmp/dest2/tmpdir'
|
||||
assert_raise(Errno::EEXIST) {
|
||||
assert_raise_with_message(Errno::EEXIST, %r' - tmp/dest2/tmpdir\z',
|
||||
'[ruby-core:68706] [Bug #11021]') {
|
||||
mv 'tmp/tmpdir', 'tmp/dest2'
|
||||
}
|
||||
mkdir 'tmp/dest2/tmpdir/junk'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue