rails/actionpack/test
Robin Dupret 7ef7f1cc15 Correctly use the response's status code calling head
Commit 20fece1 introduced the `_status_code` method to fix calls to
`head :ok`. This method has been added on both ActionController::Metal
and ActionDispatch::Response.

As for the latter, this method is just equivalent to the `response_code`
one so commit aefec3c removed it from the `Reponse` object so call to
the `_status_code` method on an ActionController::Base instance would be
handled by the `Metal` class (which `Base` inherits from) but the status
code is not updated according to the response at this level.

The fix is to actually rely on `response_code` for ActionController::Base
instances but this method doesn't exist for bare Metal controllers so we
need to define it.
2014-12-31 16:37:35 +01:00
..
abstract Partially revert deprecation of *_filter 2014-06-03 19:53:28 -03:00
assertions Change all MiniTest to Minitest since, MiniTest namespace has been renamed to Minitest 2013-12-18 14:39:50 +05:30
controller Correctly use the response's status code calling head 2014-12-31 16:37:35 +01:00
dispatch Use released rack 2014-12-19 01:26:19 -08:00
fixtures Typo: Hello = Guten Tag (in German) 2014-12-05 12:54:15 +07:00
journey make OR in journey patterns compile to a valid regular expression 2014-11-29 01:26:10 +01:00
lib/controller Removing unused fake models 2014-09-07 22:51:14 -03:00
routing Deprecate *_path methods in mailers 2014-07-30 12:01:45 -05:00
tmp
abstract_unit.rb Merge pull request #17862 from lucasmazza/lm-hide-action 2014-12-02 11:40:11 -02:00