diff options
Diffstat (limited to 'test/pathname/test_pathname.rb')
-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 |