Sha256: 1fb2f482d39dd17794304cc74a03c9946cf998aee723afcf6fb5105147a6491f

Contents?: true

Size: 536 Bytes

Versions: 51

Compression:

Stored size: 536 Bytes

Contents

# frozen_string_literal: true

module ActionController
  module Testing
    # Behavior specific to functional tests
    module Functional # :nodoc:
      def clear_instance_variables_between_requests
        if defined?(@_ivars)
          new_ivars = instance_variables - @_ivars
          new_ivars.each { |ivar| remove_instance_variable(ivar) }
        end

        @_ivars = instance_variables
      end

      def recycle!
        @_url_options = nil
        self.formats = nil
        self.params = nil
      end
    end
  end
end

Version data entries

51 entries across 48 versions & 6 rubygems

Version Path
minato_ruby_api_client-0.2.2 vendor/bundle/ruby/3.2.0/gems/actionpack-7.1.3.4/lib/action_controller/metal/testing.rb
actionpack-7.1.5.1 lib/action_controller/metal/testing.rb
actionpack-7.0.8.7 lib/action_controller/metal/testing.rb
actionpack-7.1.5 lib/action_controller/metal/testing.rb
actionpack-7.1.4.2 lib/action_controller/metal/testing.rb
actionpack-7.0.8.6 lib/action_controller/metal/testing.rb
actionpack-7.1.4.1 lib/action_controller/metal/testing.rb
actionpack-7.0.8.5 lib/action_controller/metal/testing.rb
actionpack-7.1.4 lib/action_controller/metal/testing.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/actionpack-7.1.3.4/lib/action_controller/metal/testing.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/actionpack-7.0.8.4/lib/action_controller/metal/testing.rb
cm-admin-1.5.22 vendor/bundle/ruby/3.3.0/gems/actionpack-7.0.5.1/lib/action_controller/metal/testing.rb
cm-admin-1.5.21 vendor/bundle/ruby/3.3.0/gems/actionpack-7.0.5.1/lib/action_controller/metal/testing.rb
cm-admin-1.5.20 vendor/bundle/ruby/3.3.0/gems/actionpack-7.0.5.1/lib/action_controller/metal/testing.rb
tinymce-rails-7.1.2 vendor/bundle/ruby/3.3.0/gems/actionpack-7.1.3.4/lib/action_controller/metal/testing.rb
actionpack-7.1.3.4 lib/action_controller/metal/testing.rb
actionpack-7.0.8.4 lib/action_controller/metal/testing.rb
actionpack-7.1.3.2 lib/action_controller/metal/testing.rb
actionpack-7.1.3.1 lib/action_controller/metal/testing.rb
actionpack-7.0.8.1 lib/action_controller/metal/testing.rb