Sha256: 3b96a866a90a5df92a4fe7a004e91c7e244712b2962adafc375f47b8fcbbfe6c

Contents?: true

Size: 592 Bytes

Versions: 1

Compression:

Stored size: 592 Bytes

Contents

require 'spec_helper'

module Roqua
  module CoreApi
    module Sessions
      describe OrganizationSession do
        let(:session) { Fabricate :organization_session }

        describe '#dossier_session' do
          it 'initializes a dossier session with a given organization' do
            dossier_id = 'some_dossier_id'
            expect(DossierSession).to receive(:new)
                                  .with(dossier_id, session.organization_id, session.app_id, session.server_url)
            session.dossier_session dossier_id
          end
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
roqua-core-api-0.0.4 spec/lib/roqua/core_api/sessions/organization_session_spec.rb