assert_response (Test::Unit::Assertions)

    # File lib/action_controller/assertions.rb, line 58
          def assert_response(type, message = nil)
            clean_backtrace do
              if [ :success, :missing, :redirect, :error ].include?(type) && @response.send("#{type}?")
                assert_block("") { true } # to count the assertion
              elsif type.is_a?(Fixnum) && @response.response_code == type
                assert_block("") { true } # to count the assertion
              else
                assert_block(build_message(message, "Expected response to be a <?>, but was <?>", type, @response.response_code)) { false }
              end
            end
          end