Skip to content

Commit

Permalink
Fix required arguments for File.chown
Browse files Browse the repository at this point in the history
  • Loading branch information
lumeet committed Feb 5, 2015
1 parent 27c0c65 commit 49bcb54
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion core/src/main/java/org/jruby/RubyFile.java
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ public static IRubyObject chmod(ThreadContext context, IRubyObject recv, IRubyOb
return runtime.newFixnum(count);
}

@JRubyMethod(required = 3, rest = true, meta = true)
@JRubyMethod(required = 2, rest = true, meta = true)
public static IRubyObject chown(ThreadContext context, IRubyObject recv, IRubyObject[] args) {
Ruby runtime = context.runtime;

Expand Down
1 change: 0 additions & 1 deletion test/mri/excludes/TestFile.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
exclude :test_gets_para_extended_file , "needs investigation"
exclude :test_open_nul, "needs investigation"
exclude :test_read_all_extended_file , "needs investigation"
exclude :test_s_chown , "needs investigation"
exclude :test_stat , "birthtime does not match MRI behavior (#2152)"
exclude :test_truncate_wbuf, "fails on Linux"
exclude :test_uninitialized , "needs investigation"

0 comments on commit 49bcb54

Please sign in to comment.