Dmytrii Nagirniak created JRUBY-6329: ----------------------------------------
Summary: Broken instance_eval/exec/*args? Key: JRUBY-6329 URL: https://jira.codehaus.org/browse/JRUBY-6329 Project: JRuby Issue Type: Bug Affects Versions: JRuby 1.7 Environment: jruby 1.7.0.dev (ruby-1.9.3-p6) (2012-01-10 6e99d11) (Java HotSpot(TM) Client VM 1.6.0_29) [darwin-i386-java] Reporter: Dmytrii Nagirniak Assignee: Thomas E Enebo Priority: Critical See: https://gist.github.com/092eebe6395f304c7d62 Basically this throws (in a typical Rails model spec) in 1.7.dev and works in 1.6.5.1. All use --1.9 mode. {noformat} it "should work" do [1].should include 1 # Works on 1.6.5.1, faile on 1.7.dev (see log) end {noformat} {noformat} Failure/Error: [1].should include 1 NoMethodError: undefined method `include?' for 1:Fixnum # /Users/dnagir/.rvm/gems/jruby-head/gems/rspec-expectations-2.7.0/lib/rspec/matchers/include.rb:39:in `perform_match' # org/jruby/RubyEnumerable.java:1290:in `all?' # org/jruby/RubyBasicObject.java:1766:in `__send__' # org/jruby/RubyKernel.java:1972:in `send' # /Users/dnagir/.rvm/gems/jruby-head/gems/rspec-expectations-2.7.0/lib/rspec/matchers/include.rb:33:in `perform_match' # /Users/dnagir/.rvm/gems/jruby-head/gems/rspec-expectations-2.7.0/lib/rspec/matchers/include.rb:25:in `include' # org/jruby/RubyBasicObject.java:1825:in `instance_exec' # /Users/dnagir/.rvm/gems/jruby-head/gems/rspec-expectations-2.7.0/lib/rspec/matchers/extensions/instance_eval_with_args.rb:11:in `instance_eval_with_args' # /Users/dnagir/.rvm/gems/jruby-head/gems/rspec-expectations-2.7.0/lib/rspec/matchers/matcher.rb:39:in `matches?' # /Users/dnagir/.rvm/gems/jruby-head/gems/rspec-expectations-2.7.0/lib/rspec/expectations/handler.rb:11:in `handle_matcher' # /Users/dnagir/.rvm/gems/jruby-head/gems/rspec-expectations-2.7.0/lib/rspec/expectations/extensions/kernel.rb:12:in `should' # ./spec/models/company_spec.rb:5:in `(root)' # org/jruby/RubyBasicObject.java:1798:in `instance_eval' # /Users/dnagir/.rvm/gems/jruby-head/gems/rspec-core-2.7.1/lib/rspec/core/example.rb:51:in `run' # /Users/dnagir/.rvm/gems/jruby-head/gems/rspec-core-2.7.1/lib/rspec/core/example.rb:110:in `with_around_hooks' # /Users/dnagir/.rvm/gems/jruby-head/gems/rspec-core-2.7.1/lib/rspec/core/example.rb:48:in `run' # /Users/dnagir/.rvm/gems/jruby-head/gems/rspec-core-2.7.1/lib/rspec/core/example_group.rb:306:in `run_examples' # org/jruby/RubyArray.java:2335:in `map' # /Users/dnagir/.rvm/gems/jruby-head/gems/rspec-core-2.7.1/lib/rspec/core/example_group.rb:302:in `run_examples' # /Users/dnagir/.rvm/gems/jruby-head/gems/rspec-core-2.7.1/lib/rspec/core/example_group.rb:274:in `run' # /Users/dnagir/.rvm/gems/jruby-head/gems/rspec-core-2.7.1/lib/rspec/core/command_line.rb:24:in `run' # org/jruby/RubyArray.java:2335:in `map' # /Users/dnagir/.rvm/gems/jruby-head/gems/rspec-core-2.7.1/lib/rspec/core/command_line.rb:24:in `run' # /Users/dnagir/.rvm/gems/jruby-head/gems/rspec-core-2.7.1/lib/rspec/core/reporter.rb:12:in `report' # /Users/dnagir/.rvm/gems/jruby-head/gems/rspec-core-2.7.1/lib/rspec/core/command_line.rb:21:in `run' # /Users/dnagir/.rvm/gems/jruby-head/gems/rspec-core-2.7.1/lib/rspec/core/runner.rb:80:in `run_in_process' # /Users/dnagir/.rvm/gems/jruby-head/gems/rspec-core-2.7.1/lib/rspec/core/runner.rb:69:in `run' # /Users/dnagir/.rvm/gems/jruby-head/gems/rspec-core-2.7.1/lib/rspec/core/runner.rb:10:in `autorun' {noformat} -- 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