diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-02-11 17:36:37 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-02-11 17:36:37 +0000 |
commit | 200d6695631ed0bdbfe58cd98bf65a00b31b4927 (patch) | |
tree | e400d79c81c2365f31d5c153bc519c0f014d10d3 /lib/pathname.rb | |
parent | a807059e3b143c670dabdc2ee28c8bd25fd004a6 (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/branches/ruby_1_8@5673 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/pathname.rb')
-rw-r--r-- | lib/pathname.rb | 4 |
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 |