rails/rails — pull request #11926 by Empact (2013-08-18 02:06:33+00:00)
Title: Fail informatively in #respond_with when no appropriate #api_behavior renderer is available.

Currently if a user calls #respond_with(csvable), but has not csv
renderer available, Responder will just run through the default render
behavior twice, raising ActionView::MissingTemplate both times.

This changes ActionController::Metal::Responder#api_behavior to check
in advance whether there is a renderer available, and raise
ActionController::MissingRenderer if not.

Also split up the mime_responds_test file.