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_controller/test_case.rb, line 662
      def non_kwarg_request_warning
        ActiveSupport::Deprecation.warn(<<-MSG.strip_heredoc)
          Using positional arguments in functional tests has been deprecated,
          in favor of keyword arguments, and will be removed in Rails 5.1.

          Deprecated style:
          get :show, { id: 1 }, nil, { notice: "This is a flash message" }

          New keyword style:
          get :show, params: { id: 1 }, flash: { notice: "This is a flash message" },
            session: nil # Can safely be omitted.
        MSG
      end

Defined in actionpack/lib/action_controller/test_case.rb line 662 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionController::TestCase::Behavior

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