diff options
| author | Jack Nagel | 2014-07-10 21:26:54 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-07-10 22:00:43 -0500 |
| commit | c259866517ac9eb730f2feda8460558135857acd (patch) | |
| tree | c5bb186c49344a7c51e06f6768fa5b8428783df5 /Library/Homebrew/test/test_pathname.rb | |
| parent | 284389a6bd4bf88269b4db580015e8590dd76a37 (diff) | |
| download | brew-c259866517ac9eb730f2feda8460558135857acd.tar.bz2 | |
Raise Errno::ENOENT instead of RuntimeError from Pathname#install
Diffstat (limited to 'Library/Homebrew/test/test_pathname.rb')
| -rw-r--r-- | Library/Homebrew/test/test_pathname.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Library/Homebrew/test/test_pathname.rb b/Library/Homebrew/test/test_pathname.rb index adf4b2238..a20f36c75 100644 --- a/Library/Homebrew/test/test_pathname.rb +++ b/Library/Homebrew/test/test_pathname.rb @@ -83,9 +83,7 @@ class PathnameExtensionTests < Homebrew::TestCase end def test_install_missing_file - assert_raises(RuntimeError) do - @dst.install 'non_existent_file' - end + assert_raises(Errno::ENOENT) { @dst.install "non_existent_file" } end def test_install_removes_original |
