Methods
- T
- U
Instance Public methods
test_action_missing_should_work()
Link
Source: | on GitHub
test_process_should_be_precise()
Link
# File actionpack/test/controller/base_test.rb, line 172 def test_process_should_be_precise use_controller EmptyController exception = assert_raise AbstractController::ActionNotFound do get :non_existent end assert_equal "The action 'non_existent' could not be found for EmptyController", exception.message end
use_controller(controller_class)
Link
# File actionpack/test/controller/base_test.rb, line 160 def use_controller(controller_class) @controller = controller_class.new # enable a logger so that (e.g.) the benchmarking stuff runs, so we can get # a more accurate simulation of what happens in "real life". @controller.logger = ActiveSupport::Logger.new(nil) @request = ActionController::TestRequest.new @response = ActionController::TestResponse.new @request.host = "www.nextangle.com" end