diff options
| author | Jack Nagel | 2014-06-11 18:57:32 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-06-12 09:00:58 -0500 |
| commit | 96195295a3462070a26e03148f5140bbf0ea4dfd (patch) | |
| tree | 3e77da4e678df8ee4bf3ea1f9a85c2d7024e4527 /Library/Homebrew/test/test_pathname.rb | |
| parent | faaa622820deb067fa65d1207db119be950fad93 (diff) | |
| download | brew-96195295a3462070a26e03148f5140bbf0ea4dfd.tar.bz2 | |
Deprecate Pathname#cp and Pathname#chmod_R
As far as I can tell these methods have only ever been used in the test
suite.
Since Formula includes FileUtils, it is generally simpler (and in the
case of cp, more readable) to use the FileUtils methods directly.
Closes Homebrew/homebrew#30081.
Diffstat (limited to 'Library/Homebrew/test/test_pathname.rb')
| -rw-r--r-- | Library/Homebrew/test/test_pathname.rb | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/Library/Homebrew/test/test_pathname.rb b/Library/Homebrew/test/test_pathname.rb index 3bfda1a17..1c0fdfa41 100644 --- a/Library/Homebrew/test/test_pathname.rb +++ b/Library/Homebrew/test/test_pathname.rb @@ -46,12 +46,6 @@ class PathnameExtensionTests < Test::Unit::TestCase assert_raises(RuntimeError) { @file.write('CONTENT') } end - def test_chmod_R - perms = 0777 - FileUtils.expects(:chmod_R).with(perms, @dir.to_s) - @dir.chmod_R(perms) - end - def test_atomic_write touch @file @file.atomic_write('CONTENT') @@ -71,19 +65,6 @@ class PathnameExtensionTests < Test::Unit::TestCase assert_equal sentinel.stat.mode, @file.stat.mode end - def test_cp - touch @file - mkdir_p @dir - - @file.cp(@dir) - assert @file.file? - assert((@dir+@file.basename).file?) - - @dir.cp(@dst) - assert @dir.directory? - assert((@dst+@dir.basename).directory?) - end - def test_ensure_writable touch @file chmod 0555, @file |
