diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-08-07 00:29:52 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-08-07 00:29:52 +0000 |
commit | 6bc65b35bdf8611837a81dd381eb8c7b61442fc6 (patch) | |
tree | d5254eee7dfc84917e5a25e41b737a2fff50f62a /test/pathname | |
parent | 261bb184c61b8d881a60c39efba3580472bfbc36 (diff) | |
download | ruby-6bc65b35bdf8611837a81dd381eb8c7b61442fc6.tar.gz |
* test/ruby/envutil.rb (assert_normal_exit): use assert. fix
faildesc.
* test/pathname/test_pathname.rb (test_lchmod): test Pathname#lchmod
using assert_normal_exit.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28892 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/pathname')
-rw-r--r-- | test/pathname/test_pathname.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/pathname/test_pathname.rb b/test/pathname/test_pathname.rb index 6ad95441ee..94bcffafbd 100644 --- a/test/pathname/test_pathname.rb +++ b/test/pathname/test_pathname.rb @@ -7,6 +7,8 @@ require 'fileutils' require 'tmpdir' require 'enumerator' +require_relative '../ruby/envutil' + class TestPathname < Test::Unit::TestCase def self.define_assertion(name, &block) @defassert_num ||= {} @@ -732,6 +734,7 @@ class TestPathname < Test::Unit::TestCase File.symlink("a", "l") path = Pathname("l") old = path.lstat.mode + assert_normal_exit %{ require "pathname"; Pathname("foo").lchmod(nil) } begin path.lchmod(0444) rescue NotImplementedError |