class HelpersTypoControllerTest
Public Instance Methods
setup()
click to toggle source
# File actionpack/test/controller/helper_test.rb, line 88 def setup @autoload_paths = ActiveSupport::Dependencies.autoload_paths ActiveSupport::Dependencies.autoload_paths = Array(HelpersTypoController.helpers_path) end
teardown()
click to toggle source
# File actionpack/test/controller/helper_test.rb, line 98 def teardown ActiveSupport::Dependencies.autoload_paths = @autoload_paths end
test_helper_typo_error_message()
click to toggle source
# File actionpack/test/controller/helper_test.rb, line 93 def test_helper_typo_error_message e = assert_raise(NameError) { HelpersTypoController.helper "admin/users" } assert_equal "Couldn't find Admin::UsersHelper, expected it to be defined in helpers/admin/users_helper.rb", e.message end