spec/controllers/admin/masquerade_controller_spec.rb
# Serialize the session, but omit a tuple that tracks the last request
# time, since we don't care about that for tests.
Serialize the session, but omit a tuple that tracks the last request
time, since we don't care about that for tests.
Serialize the session but omit a tuple that tracks the last request time since we don ' t care about that for tests .
def snapshot_session
      controller.session.as_json.select do |key, value|
        key != 'warden.user.educator.session'
      end
    end
def snapshot_session controller . session . as_json . select do | key , value | key != 'warden.user.educator.session' end end
Serialize the session, but omit a tuple that tracks the last request
time, since we don't care about that for tests.
Serialize the session but omit a tuple that tracks the last request time since we don ' t care about that for tests .