rails/rails — pull request #15132 by zuhao (2014-05-16 15:13:58+00:00)
Title: Ensure :js is defined regardless of the outcome of the test.

In the `ensure` block, `unless AbstractController::Collector.method_defined? :js` is for getting rid of the method redefined warning, in case the test passes.

Regardless of the test outcome, we should make sure `:js` is defined for AbstractController::Collector because we've removed it in the beginning of the test.

cc @senny