quiz_api_client 4.16.1 → 4.17.0
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: e23a84ac19d13092f5a3b444fb14ad9347a6b213823f76d59cf6bbcf416f1d45
|
4
|
+
data.tar.gz: b2c552afb96c01f953bbddfb6884ca89815a0ce41984ce303e8d577b8eacdc7b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f574041231c954f70acc74cc5f3f9ba142b6f9f9f289fc782839e3fbd4eedd116142850380af90707492dbccd8d9f5ff3370c915f76cb971068b5b9010892399
|
7
|
+
data.tar.gz: 492b05909f9bb60cd5994ee313dca258012b9706525e22fb7f48a2f536792fe9b75d3ac8098f55aa50787a0b6d54b7431e7b86d0a504007f27a2696e16cd5c81
|
@@ -10,7 +10,8 @@ module QuizApiClient::Services
|
|
10
10
|
client(token: token).post(
|
11
11
|
"/api/quizzes/#{params[:quiz_id]}/analyses",
|
12
12
|
quiz_session_ids: params[:quiz_session_ids],
|
13
|
-
filter: params[:filter]
|
13
|
+
filter: params[:filter],
|
14
|
+
analysis_type: params[:analysis_type]
|
14
15
|
)
|
15
16
|
end
|
16
17
|
end
|
@@ -5,14 +5,18 @@ describe QuizApiClient::Services::AnalysesService do
|
|
5
5
|
|
6
6
|
describe '#create' do
|
7
7
|
let(:params) do
|
8
|
-
{ quiz_id: 1, quiz_session_ids: [1, 5, 10], filter: :last_attempt }
|
8
|
+
{ quiz_id: 1, quiz_session_ids: [1, 5, 10], filter: :last_attempt, analysis_type: 'student_analysis' }
|
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' } }
|
12
13
|
let(:status_code) { 200 }
|
13
14
|
|
14
15
|
before do
|
15
16
|
stub_request(:post, expected_url)
|
17
|
+
.with(
|
18
|
+
body: expected_params.to_json
|
19
|
+
)
|
16
20
|
.to_return(
|
17
21
|
status: status_code,
|
18
22
|
body: stubbed_response.to_json,
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: quiz_api_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.17.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alex Slaughter
|
@@ -15,7 +15,7 @@ authors:
|
|
15
15
|
autorequire:
|
16
16
|
bindir: exe
|
17
17
|
cert_chain: []
|
18
|
-
date: 2024-
|
18
|
+
date: 2024-11-13 00:00:00.000000000 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: httparty
|