Postmodern created JRUBY-6399:
---------------------------------
Summary: wrong number of arguments (4 for 3) when calling enum_for
in 1.9 mode
Key: JRUBY-6399
URL: https://jira.codehaus.org/browse/JRUBY-6399
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules
Affects Versions: JRuby 1.6.6
Environment: jruby 1.6.6 (ruby-1.9.2-p312) (2012-01-30 5673572)
(OpenJDK 64-Bit Server VM 1.6.0_22) [linux-amd64-java]
Reporter: Postmodern
Discovered this odd error when running the specs for Ronin
(http://github.com/ronin-ruby/ronin) on JRuby 1.6.6 in 1.9 mode. The backtraces
point to invocations of enum_for with two or three arguments.
$ jruby --1.9 -S rake spec
Failures:
1) Ronin::IPAddress extract should extract multiple IP Addresses from text
Failure/Error: subject.extract(text).should == [ip1, ip2]
ArgumentError:
wrong number of arguments (4 for 3)
# ./lib/ronin/ip_address.rb:101:in `extract'
# ./spec/ip_address_spec.rb:24:in `(root)'
2) Ronin::Installation each_file_in should enumerate over the files which
match a glob pattern
Failure/Error: subject.each_file_in(directory,ext).to_a.should =~ expected
ArgumentError:
wrong number of arguments (4 for 3)
# ./lib/ronin/installation.rb:134:in `each_file_in'
# ./spec/installation_spec.rb:54:in `(root)'
3) Ronin::Installation each_file_in should return an Enumerator when no block
is given
Failure/Error: subject.each_file_in(directory,ext).all? { |file|
ArgumentError:
wrong number of arguments (4 for 3)
# ./lib/ronin/installation.rb:134:in `each_file_in'
# ./spec/installation_spec.rb:58:in `(root)'
4) Ronin::Script::Path failed cached files should not save new cached files
that contain validation errors
Failure/Error: validation_error.should_not be_saved
expected saved? to return false, got true
# ./spec/script/path_spec.rb:98:in `(root)'
Finished in 45.65 seconds
275 examples, 4 failures
Failed examples:
rspec ./spec/ip_address_spec.rb:23 # Ronin::IPAddress extract should extract
multiple IP Addresses from text
rspec ./spec/installation_spec.rb:53 # Ronin::Installation each_file_in should
enumerate over the files which match a glob pattern
rspec ./spec/installation_spec.rb:57 # Ronin::Installation each_file_in should
return an Enumerator when no block is given
rspec ./spec/script/path_spec.rb:97 # Ronin::Script::Path failed cached files
should not save new cached files that contain validation errors
org.jruby.exceptions.RaiseException: (SystemExit) exit
rake aborted!
/home/hal/.rvm/rubies/jruby-1.6.6/bin/jruby -S rspec ./spec/url_scheme_spec.rb
./spec/url_spec.rb ./spec/ip_address_spec.rb ./spec/url_query_param_spec.rb
./spec/repository_spec.rb ./spec/ronin_spec.rb ./spec/database_spec.rb
./spec/campaign_spec.rb ./spec/os_spec.rb ./spec/password_spec.rb
./spec/license_spec.rb ./spec/credential_spec.rb ./spec/arch_spec.rb
./spec/host_name_spec.rb ./spec/software_spec.rb ./spec/port_spec.rb
./spec/vendor_spec.rb ./spec/service_spec.rb ./spec/mac_address_spec.rb
./spec/email_address_spec.rb ./spec/installation_spec.rb ./spec/author_spec.rb
./spec/script/script_spec.rb ./spec/script/deployable_spec.rb
./spec/script/path_spec.rb ./spec/script/buildable_spec.rb
./spec/script/testable_spec.rb ./spec/model/has_authors_spec.rb
./spec/model/has_description_spec.rb ./spec/model/has_name_spec.rb
./spec/model/has_license_spec.rb ./spec/model/model_spec.rb
./spec/model/has_title_spec.rb ./spec/model/has_version_spec.rb
./spec/ui/cli/command_spec.rb fai
led
Tasks: TOP => spec
(See full trace by running task with --trace)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://jira.codehaus.org/secure/ContactAdministrators!default.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