lib/active_resource_integration_dsl.rb
# Initiates a new session as a guest user (i.e. not logged in).
#
# === Sample
#  def test_prepare_for_login
#    new_session do |guest|
#      guest.shows(new_session_path)
#    end
#  end
Initiates a new session as a guest user .
Initiates a new session as a guest user .
def new_session
    open_session do |sess|
      sess.extend(SessionMethods)
      yield sess if block_given?
    end
  end
def new_session open_session do | sess | sess . extend ( SessionMethods ) yield sess if block_given? end end
Initiates a new session as a guest user (i.e.
Initiates a new session as a guest user ( i . e .