Skip to content

Instantly share code, notes, and snippets.

@postmodern
Created January 31, 2012 02:45
Show Gist options
  • Save postmodern/1708391 to your computer and use it in GitHub Desktop.
Save postmodern/1708391 to your computer and use it in GitHub Desktop.
jruby 1.6.6 --1.9 mode failures wrt enum_for
$ git clone git://github.com/ronin-ruby/ronin.git
$ cd ronin/
$ bundle install
$ bundle show rspec
/home/hal/.rvm/gems/jruby-1.6.6/gems/rspec-2.8.0
$ 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 failed
Tasks: TOP => spec
(See full trace by running task with --trace)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment