roqua-core-api 0.0.10 → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 59bd3050c559a28a879ac11af622410a74ee2248
|
4
|
+
data.tar.gz: 79cb0779df69138dae9788bf9dff377ecb9400fa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0d5ebfeaad2d326688632a3ea1bd77d05023510b431c24dc484e7992bd189b2f6475db55dd57ea4cfd7d6325a27d7714eab933e1537bf06bafee56a18989809c
|
7
|
+
data.tar.gz: 87e11c1502e2fad15933b5b227293ef17dbd40d48ffe1dd32062583c6f7a230008ade5c65ecfc2e7e56f4966d9ad4d4793ca7d011524ec7e668a2a01d3335dde
|
data/ChangeLog.md
CHANGED
@@ -3,9 +3,10 @@ module Roqua
|
|
3
3
|
# @api private
|
4
4
|
class SendInviteEmail < ActiveInteraction::Base
|
5
5
|
model :session, class: Sessions::OAuthSession
|
6
|
+
string :dossier_id
|
6
7
|
|
7
8
|
def execute
|
8
|
-
session.post
|
9
|
+
session.post "/dossiers/#{dossier_id}/send_invite_email"
|
9
10
|
end
|
10
11
|
end
|
11
12
|
end
|
@@ -4,7 +4,7 @@ describe SendInviteEmail do
|
|
4
4
|
let(:session) { Fabricate :oauth_session }
|
5
5
|
|
6
6
|
it 'performs a post on the send_invite_email api path' do
|
7
|
-
expect(session).to receive(:post).with '/send_invite_email'
|
8
|
-
SendInviteEmail.run!(session: session)
|
7
|
+
expect(session).to receive(:post).with '/dossiers/some_dossier_id/send_invite_email'
|
8
|
+
SendInviteEmail.run!(session: session, dossier_id: 'some_dossier_id')
|
9
9
|
end
|
10
10
|
end
|