1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionpack/test/abstract
Piotr Niełacny e0438b1c07 Show real LoadError on helpers require
When helper try to require missing file rails will throw exception about
missing helper.

  # app/helpers/my_helper.rb

  require 'missing'

  module MyHelper
  end

And when we try do load helper

  class ApplicationController
    helper :my
  end

Rails will throw exception. This is wrong because there is a helper
file.

  Missing helper file helpers/my_helper.rb

Now when helper try to require non-existed file rails will throw proper
exception.

  No such file to load -- missing
2013-07-10 11:26:43 +02:00
..
views
.helper_test.rb.swp Show real LoadError on helpers require 2013-07-10 11:26:43 +02:00
abstract_controller_test.rb Remove unnecessary begin..rescue..end, use only rescue 2013-01-06 15:41:14 +09:00
callbacks_test.rb Changed 'args' to 'arguments' in test description 2013-03-24 02:27:43 +05:30
collector_test.rb Changed 'args' to 'arguments' in test description 2013-03-24 02:27:43 +05:30
helper_test.rb Show real LoadError on helpers require 2013-07-10 11:26:43 +02:00
layouts_test.rb Avoid leak into controller's action_methods 2013-04-18 20:03:31 +04:00
render_test.rb #948 template_inheritance 2010-12-26 22:32:15 -08:00
translation_test.rb Fix setting expected value in translation tests 2013-01-21 09:29:03 -02:00