Methods
T
U
Instance Public methods
test_action_missing_should_work()
# File actionpack/test/controller/base_test.rb, line 143
def test_action_missing_should_work
  use_controller ActionMissingController
  get :arbitrary_action
  assert_equal "Response for arbitrary_action", @response.body
end
test_process_should_be_precise()
# File actionpack/test/controller/base_test.rb, line 135
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)
# File actionpack/test/controller/base_test.rb, line 125
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.host = "www.nextangle.com"
end