method

code_with_name

Importance_0
v7.1.3.4 - Show latest stable - 0 notes - Class: ActionDispatch::Assertions::ResponseAssertions
code_with_name(code_or_name) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File actionpack/lib/action_dispatch/testing/assertions/response.rb, line 102
        def code_with_name(code_or_name)
          if RESPONSE_PREDICATES.value?("#{code_or_name}?".to_sym)
            code_or_name = RESPONSE_PREDICATES.invert["#{code_or_name}?".to_sym]
          end

          AssertionResponse.new(code_or_name).code_and_name
        end
Register or log in to add new notes.