quiz_api_client 4.17.0 → 4.17.1
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d09fd6f046ee756bdce9439fb2b10585444002d42ccff124b1b74806db432830
|
4
|
+
data.tar.gz: 68e4132368a554d8e957cdab9250553f578e06da51e3662051d8c45f7db75372
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 360473c5a226927eb692ccc8dc66334c9770878c9d952d10077b73b6004cbf120e79159dd3426f861fd84f1a310ea78fa133a21ed6b1e851446bec0a032db37a
|
7
|
+
data.tar.gz: b414958e672367c5d1c01cf5d649fcc0c0a4af5164eb91aae79a1d916d841455cb20f014aef1c13e57a48bd7a2f696926844ab19fcf3423e7d81352367f24665
|
@@ -9,9 +9,7 @@ module QuizApiClient::Services
|
|
9
9
|
def post_to_quiz_api(params:, token:)
|
10
10
|
client(token: token).post(
|
11
11
|
"/api/quizzes/#{params[:quiz_id]}/analyses",
|
12
|
-
|
13
|
-
filter: params[:filter],
|
14
|
-
analysis_type: params[:analysis_type]
|
12
|
+
params
|
15
13
|
)
|
16
14
|
end
|
17
15
|
end
|
@@ -9,13 +9,12 @@ describe QuizApiClient::Services::AnalysesService do
|
|
9
9
|
end
|
10
10
|
let(:stubbed_response) { { 'job_id' => 1 } }
|
11
11
|
let(:expected_url) { "https://#{host}/api/quizzes/#{params[:quiz_id]}/analyses" }
|
12
|
-
let(:expected_params) { { quiz_session_ids: [1, 5, 10], filter: :last_attempt, analysis_type: 'student_analysis' } }
|
13
12
|
let(:status_code) { 200 }
|
14
13
|
|
15
14
|
before do
|
16
15
|
stub_request(:post, expected_url)
|
17
16
|
.with(
|
18
|
-
body:
|
17
|
+
body: params.to_json
|
19
18
|
)
|
20
19
|
.to_return(
|
21
20
|
status: status_code,
|