aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/test_pathname.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/test/test_pathname.rb')
-rw-r--r--Library/Homebrew/test/test_pathname.rb4
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