summaryrefslogtreecommitdiff
path: root/lib/pathname.rb
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-02-11 17:36:37 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-02-11 17:36:37 +0000
commit166b3957e08dd5f6c3221268a6df97212be4f53d (patch)
treee0d4b2e0013eb0bd59cc9d63b1e575e52e75011d /lib/pathname.rb
parentb187d1933b8bfb0edb4dec98c7142488cd80a42c (diff)
* lib/pathname.rb: use assert_raise instead of assert_raises.
* lib/pp.rb: ditto. * lib/time.rb: ditto. * lib/tsort.rb: ditto. use TSortHash and TSortArray instead of Hash and Array in test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5673 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/pathname.rb')
-rw-r--r--lib/pathname.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/pathname.rb b/lib/pathname.rb
index 43b50e1f11..a6d0599610 100644
--- a/lib/pathname.rb
+++ b/lib/pathname.rb
@@ -719,7 +719,7 @@ class Pathname # * FileTest *
# See <tt>FileTest.readable?</tt>.
def readable?() FileTest.readable?(@path) end
- # See <tt>FileTest.readable_world?</tt>.
+ # See <tt>FileTest.world_readable?</tt>.
def world_readable?() FileTest.world_readable?(@path) end
# See <tt>FileTest.readable_real?</tt>.
@@ -746,7 +746,7 @@ class Pathname # * FileTest *
# See <tt>FileTest.writable?</tt>.
def writable?() FileTest.writable?(@path) end
- # See <tt>FileTest.writable_world?</tt>.
+ # See <tt>FileTest.world_writable?</tt>.
def world_writable?() FileTest.world_writable?(@path) end
# See <tt>FileTest.writable_real?</tt>.
@@ -1040,7 +1040,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)
@@ -1049,7 +1049,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