summaryrefslogtreecommitdiff
path: root/test/fileutils/test_fileutils.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/fileutils/test_fileutils.rb')
-rw-r--r--test/fileutils/test_fileutils.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/fileutils/test_fileutils.rb b/test/fileutils/test_fileutils.rb
index f5ca9d21e2..63a4590cf0 100644
--- a/test/fileutils/test_fileutils.rb
+++ b/test/fileutils/test_fileutils.rb
@@ -968,6 +968,22 @@ class TestFileUtils < Test::Unit::TestCase
}
end
+ def test_install_owner_option
+ File.open('tmp/aaa', 'w') {|f| f.puts 'aaa' }
+ File.open('tmp/bbb', 'w') {|f| f.puts 'bbb' }
+ assert_nothing_raised {
+ install 'tmp/aaa', 'tmp/bbb', :owner => "nobody", :noop => true
+ }
+ end
+
+ def test_install_group_option
+ File.open('tmp/aaa', 'w') {|f| f.puts 'aaa' }
+ File.open('tmp/bbb', 'w') {|f| f.puts 'bbb' }
+ assert_nothing_raised {
+ install 'tmp/aaa', 'tmp/bbb', :group => "nobody", :noop => true
+ }
+ end
+
def test_chmod
check_singleton :chmod