instance method non_kwarg_request_warning

Ruby on Rails 5.0.7.2

Since v5.0.7.2 Last seen in v5.0.7.2 Private — implementation detail, not part of the public API

Signature

non_kwarg_request_warning()

No documentation comment.

Source
# File actionpack/lib/action_dispatch/testing/integration.rb, line 373
        def non_kwarg_request_warning
          ActiveSupport::Deprecation.warn(<<-MSG.strip_heredoc)
            Using positional arguments in integration tests has been deprecated,
            in favor of keyword arguments, and will be removed in Rails 5.1.

            Deprecated style:
            get "/profile", { id: 1 }, { "X-Extra-Header" => "123" }

            New keyword style:
            get "/profile", params: { id: 1 }, headers: { "X-Extra-Header" => "123" }
          MSG
        end

Defined in actionpack/lib/action_dispatch/testing/integration.rb line 373 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionDispatch::Integration::Session

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close