mirror of
https://github.com/ruby/ruby.git
synced 2025-09-17 01:23:57 +02:00
merges r28685 from trunk into ruby_1_9_2.
-- * lib/fileutils.rb (FileUtils::Entry_#copy): check file name spearator boundary. [ruby-core:31360] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@28743 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
7252a95e73
commit
d1a5bcd83f
3 changed files with 26 additions and 1 deletions
|
@ -286,6 +286,15 @@ class TestFileUtils
|
|||
assert_directory 'tmp/cpr_dest/d'
|
||||
my_rm_rf 'tmp/cpr_src'
|
||||
my_rm_rf 'tmp/cpr_dest'
|
||||
|
||||
bug3588 = '[ruby-core:31360]'
|
||||
assert_nothing_raised(ArgumentError, bug3588) do
|
||||
cp_r 'tmp', 'tmp2'
|
||||
end
|
||||
assert_directory 'tmp2/tmp'
|
||||
assert_raise(ArgumentError, bug3588) do
|
||||
cp_r 'tmp2', 'tmp2/new_tmp2'
|
||||
end
|
||||
end
|
||||
|
||||
def test_cp_r_symlink
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue