method

open_session

Importance_1
Ruby on Rails latest stable (v7.1.3.2) - 0 notes - Class: ActionController::Integration::Runner

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v2.3.8) is shown here.

These similar methods exist in v7.1.3.2:

open_session(application = nil) public

Open a new session instance. If a block is given, the new session is yielded to the block before being returned.

  session = open_session do |sess|
    sess.extend(CustomAssertions)
  end

By default, a single session is automatically created for you, but you can use this method to open multiple sessions that ought to be tested simultaneously.

Show source
Register or log in to add new notes.