instance method url_helpers

Ruby on Rails 8.0.4

Since v6.1.7.10 Private

Available in: v6.1.7.10 v7.0.10 v7.1.6 v7.2.3 v8.0.4 v8.1.2

Signature

url_helpers()

No documentation comment.

Source
# File actionpack/lib/action_dispatch/system_test_case.rb, line 173
      def url_helpers
        @url_helpers ||=
          if ActionDispatch.test_app
            Class.new do
              include ActionDispatch.test_app.routes.url_helpers
              include ActionDispatch.test_app.routes.mounted_helpers

              def url_options
                default_url_options.reverse_merge(host: app_host)
              end

              def app_host
                Capybara.app_host || Capybara.current_session.server_url || DEFAULT_HOST
              end
            end.new
          end
      end

Defined in actionpack/lib/action_dispatch/system_test_case.rb line 173 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionDispatch::SystemTestCase

Type at least 2 characters to search.

↑↓ navigate · open · esc close