summaryrefslogtreecommitdiff
path: root/lib/pathname.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/pathname.rb')
-rw-r--r--lib/pathname.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/pathname.rb b/lib/pathname.rb
index e664d64768..95f5be2752 100644
--- a/lib/pathname.rb
+++ b/lib/pathname.rb
@@ -1032,7 +1032,7 @@ if $0 == __FILE__
end
def test_null_character
- assert_raises(ArgumentError) { Pathname.new("\0") }
+ assert_raise(ArgumentError) { Pathname.new("\0") }
end
def assert_relpath(result, dest, base)
@@ -1041,7 +1041,7 @@ if $0 == __FILE__
end
def assert_relpath_err(dest, base)
- assert_raises(ArgumentError) {
+ assert_raise(ArgumentError) {
Pathname.new(dest).relative_path_from(Pathname.new(base))
}
end