Here's basically what I did to get a minimal reproduction of the
problem:
  rvm install 1.8.7
  rvm use 1.9.8
  gem install rails -v=2.3.14
  rails blargh
  cd blargh
  ./script/generate controller blargh

Contents of blargh_controller.rb:
class BlarghController < ApplicationController
  rescue_from Exception do puts 'Caught it' end

  def index
    raise 'blargh'
  end
end

Contents of blargh_controller_test.rb
require 'test_helper'

class BlarghControllerTest < ActionController::TestCase
  # Replace this with your real tests.
  test "exception handling" do
    rescue_action_in_public!
    get :index
  end
end

Running ruby -I test test/functional/blargh_controller_test.rb gives
me a lot of blaha but also the output that indicates that the
exception was handled even though I didn't change the
@request.remote_addr.

Changing the def rescue_action_without_handler line in module
RaiseActionExceptions to def rescue_action seems to solve the problem
though.

Is anyone still integrating fixes for 2.3?

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-core?hl=en.

Reply via email to