require 'spec_helper' module Roqua module CoreApi module Sessions describe OrganizationSession do let(:session) { Fabricate :organization_session } describe '#dossier_group_session' do it 'initializes an dossier_group session with a given dossier_group_id' do dossier_group_id = 'some_dossier_group_id' expect(DossierGroupSession).to receive(:new).with(dossier_group_id, session.organization_id, session.server_url) session.dossier_group_session dossier_group_id end end end end end end