Sha256: 0909334c8a2ff7e76ca0fd717743552d5bce9dc845606c1242864a85e8ed6ec0

Contents?: true

Size: 667 Bytes

Versions: 3

Compression:

Stored size: 667 Bytes

Contents

require 'spec_helper'

describe SendInviteEmail do
  let(:session) { Fabricate :roqua_core_api_oauth_session }

  it 'performs a post on the send_invite_email api path' do
    expect(session).to receive(:post).with '/dossiers/some_dossier_id/send_invite_email',
                                           email_subject: 'account created',
                                           email_body: 'visit %create_account_link% to set password'
    SendInviteEmail.run!(session: session, dossier_id: 'some_dossier_id',
                         email_subject: 'account created',
                         email_body: 'visit %create_account_link% to set password')
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
roqua-core-api-0.2.0 spec/lib/roqua/core_api/send_invite_email_spec.rb
roqua-core-api-0.1.1 spec/lib/roqua/core_api/send_invite_email_spec.rb
roqua-core-api-0.1.0 spec/lib/roqua/core_api/send_invite_email_spec.rb