File.delete doesn't throw an error when deleting a directory
------------------------------------------------------------
Key: JRUBY-4859
URL: http://jira.codehaus.org/browse/JRUBY-4859
Project: JRuby
Issue Type: Bug
Components: Ruby 1.8.7, RubySpec
Affects Versions: JRuby 1.5.1
Reporter: Antoine Toulme
The following spec should be true (this is vague, I think raise_error takes 2
arguments, but well):
Dir.mkdir "tmp"
lambda { File.delete "tmp" }.should raise_error "Operation not permitted - tmp"
Dir.rmdir should be used instead to comply with MRI.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email