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