Feature #9292

Add unit test for chown method in test_fileutils.rb with root account

Added by Vajrasky Kok about 1 year ago. Updated about 1 year ago.

[ruby-core:59298]
Status:Closed
Priority:Normal
Assignee:-

Description

There is no unit test for chown method in test_fileutils.rb with root account. Chown with root account has unique behaviour which can change the user ownership of the file.

add_test_chown_with_root.patch Magnifier (2.86 KB) Vajrasky Kok, 12/24/2013 07:34 PM

Associated revisions

Revision 44387
Added by Nobuyoshi Nakada about 1 year ago

test_fileutils.rb: tests for chown

  • test/fileutils/fileasserts.rb (assert_ownership_user): new assertion for user ownership.
  • test/fileutils/test_fileutils.rb (test_chown_error), (test_chown_without_permission, test_chown_with_root): based on the patch by vajrasky (Vajrasky Kok) at . [Feature #9292]

Revision 44387
Added by Nobuyoshi Nakada about 1 year ago

test_fileutils.rb: tests for chown

  • test/fileutils/fileasserts.rb (assert_ownership_user): new assertion for user ownership.
  • test/fileutils/test_fileutils.rb (test_chown_error), (test_chown_without_permission, test_chown_with_root): based on the patch by vajrasky (Vajrasky Kok) at . [Feature #9292]

History

#1 Updated by Nobuyoshi Nakada about 1 year ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

This issue was solved with changeset r44387.
Vajrasky, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


test_fileutils.rb: tests for chown

  • test/fileutils/fileasserts.rb (assert_ownership_user): new assertion for user ownership.
  • test/fileutils/test_fileutils.rb (test_chown_error), (test_chown_without_permission, test_chown_with_root): based on the patch by vajrasky (Vajrasky Kok) at . [Feature #9292]

Also available in: Atom PDF