open_session

open_session(app = nil)
Instance Public methods

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

1
2
3
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.

doc_ruby_on_rails
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.