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
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
..
abstract Show real LoadError on helpers require 2013-07-10 11:26:43 +02:00
assertions test response assertions 2012-01-06 11:20:26 -08:00
controller Remove page_cache_extension deprecated method 2013-07-01 22:09:11 -05:00
dispatch Use Request#raw_post instead Request#body 2013-07-08 01:48:35 +03:00
fixtures Show real LoadError on helpers require 2013-07-10 11:26:43 +02:00
journey Make ActionDispatch::Journey::Path::Pattern#new raise more meaningful exception message. 2013-02-27 08:26:51 +08:00
lib/controller Add HTML5 input[type="color"] helper 2012-05-21 17:23:48 -03:00
routing add some tests, yay! 2012-02-22 11:05:03 -08:00
tmp
abstract_unit.rb remove unused variable and assignment 2013-03-31 19:34:40 +05:30
active_record_unit.rb we're not supporting SQLite 2 2012-12-24 12:23:39 +09:00