require 'spec_helper' describe 'dossiers' do let(:organization) { Fabricate :organization } let(:session) { Sessions::OrganizationSession.new(organization, 'development', 'http://core.dev') } it 'can be created', :vcr do dossier = session.create_dossier({}) expect(dossier.id).to eq(1) end it 'can be started', :vcr do dossier = Fabricate :dossier dossier_session = Sessions::DossierSession.new(dossier, organization, 'development', 'http://core.dev') expect { dossier_session.start(protocols: ['some_protocol']) }.to_not raise_error end end