Flowdock
method

code_with_name

Importance_0
v5.0.0.1 - 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 91
        def code_with_name(code_or_name)
          if RESPONSE_PREDICATES.values.include?("#{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.