Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FileUtils.mv does not take a third options argument #35

Closed
samg opened this issue Mar 11, 2010 · 0 comments
Closed

FileUtils.mv does not take a third options argument #35

samg opened this issue Mar 11, 2010 · 0 comments

Comments

@samg
Copy link
Contributor

samg commented Mar 11, 2010

Standard lib FileUtils.mv takes an options hash as a third argument, FakeFS bombs on this:

With real FileUtils:

irb(main):005:0> FileUtils.mv '/tmp/foo', '/tmp/bar', :force => true
=> 0

With FakeFS

irb(main):006:0> FileUtils.mv '/tmp/foo', '/tmp/bar', :force => true
ArgumentError: wrong number of arguments (3 for 2)

http://ruby-doc.org/core/classes/FileUtils.html#M004330

davidmiani pushed a commit to davidmiani/fakefs that referenced this issue May 5, 2011
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant