Method missing behavior error ----------------------------- Key: JRUBY-4807 URL: http://jira.codehaus.org/browse/JRUBY-4807 Project: JRuby Issue Type: Bug Reporter: David Calavera Assignee: Thomas E Enebo
I still couldn't isolate a test case but this is causing two tests failing in Rails. Seems the callType should be VARIABLE when it's NORMAL in some cases and RubyKernel.methodMissing is raising a NoMethodError instead of a NameError. I endorse the rails backtrace: {noformat} 1) Failure: test_missing_route_helper_after_controller_access(ApplicationIntegrationTest) [./test/controller/integration_test.rb:522:in `test_missing_route_helper_after_controller_access' /Users/david/dev/rails/activesupport/lib/active_support/testing/setup_and_teardown.rb:67:in `run' /Users/david/dev/rails/activesupport/lib/active_support/callbacks.rb:444:in `_run_setup_callbacks' /Users/david/dev/rails/activesupport/lib/active_support/testing/setup_and_teardown.rb:65:in `run']: <NameError> exception expected but was Class: <NoMethodError> Message: <"undefined method `missing_path' for #<ApplicationIntegrationTest:0x63dd8136>"> ---Backtrace--- /Users/david/dev/rails/actionpack/lib/action_dispatch/testing/assertions/routing.rb:175:in `method_missing' /Users/david/dev/rails/actionpack/lib/action_dispatch/testing/integration.rb:369:in `method_missing' ./test/controller/integration_test.rb:522:in `test_missing_route_helper_after_controller_access' ./test/controller/integration_test.rb:522:in `test_missing_route_helper_after_controller_access' /Users/david/dev/rails/activesupport/lib/active_support/testing/setup_and_teardown.rb:67:in `run' /Users/david/dev/rails/activesupport/lib/active_support/callbacks.rb:444:in `_run_setup_callbacks' /Users/david/dev/rails/activesupport/lib/active_support/testing/setup_and_teardown.rb:65:in `run' --------------- 2) Failure: test_missing_route_helper_before_controller_access(ApplicationIntegrationTest) [./test/controller/integration_test.rb:517:in `test_missing_route_helper_before_controller_access' /Users/david/dev/rails/activesupport/lib/active_support/testing/setup_and_teardown.rb:67:in `run' /Users/david/dev/rails/activesupport/lib/active_support/callbacks.rb:444:in `_run_setup_callbacks' /Users/david/dev/rails/activesupport/lib/active_support/testing/setup_and_teardown.rb:65:in `run']: <NameError> exception expected but was Class: <NoMethodError> Message: <"undefined method `missing_path' for #<ApplicationIntegrationTest:0x62bc184>"> ---Backtrace--- /Users/david/dev/rails/actionpack/lib/action_dispatch/testing/assertions/routing.rb:175:in `method_missing' /Users/david/dev/rails/actionpack/lib/action_dispatch/testing/integration.rb:369:in `method_missing' ./test/controller/integration_test.rb:517:in `test_missing_route_helper_before_controller_access' ./test/controller/integration_test.rb:517:in `test_missing_route_helper_before_controller_access' /Users/david/dev/rails/activesupport/lib/active_support/testing/setup_and_teardown.rb:67:in `run' /Users/david/dev/rails/activesupport/lib/active_support/callbacks.rb:444:in `_run_setup_callbacks' /Users/david/dev/rails/activesupport/lib/active_support/testing/setup_and_teardown.rb:65:in `run' --------------- {noformat} -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.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