maltese 0.8.1 → 0.8.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Dockerfile +1 -1
- data/Gemfile.lock +1 -1
- data/lib/maltese/sitemap.rb +1 -1
- data/lib/maltese/version.rb +1 -1
- data/spec/cli_spec.rb +2 -2
- data/spec/fixtures/vcr_cassettes/Maltese_CLI/sitemap/should_succeed.yml +63 -17
- data/spec/fixtures/vcr_cassettes/Maltese_Sitemap/get_data/should_report_if_there_are_works_returned_by_the_Datacite_REST_API.yml +6 -6
- data/spec/fixtures/vcr_cassettes/Maltese_Sitemap/get_total/with_works.yml +6 -6
- data/spec/fixtures/vcr_cassettes/Maltese_Sitemap/push_data/should_report_if_there_are_no_works_returned_by_the_Datacite_REST_API.yml +10 -10
- data/spec/fixtures/vcr_cassettes/Maltese_Sitemap/push_data/should_report_if_there_are_works_returned_by_the_Datacite_REST_API.yml +11 -11
- data/spec/fixtures/vcr_cassettes/Maltese_Sitemap/queue_jobs/should_report_if_there_are_works_returned_by_the_Datacite_REST_API.yml +63 -17
- data/spec/sitemap_spec.rb +3 -3
- metadata +1 -1
data/spec/sitemap_spec.rb
CHANGED
@@ -25,21 +25,21 @@ describe Maltese::Sitemap, vcr: true do
|
|
25
25
|
|
26
26
|
context "get_total" do
|
27
27
|
it "with works" do
|
28
|
-
expect(subject.get_total).to eq(
|
28
|
+
expect(subject.get_total).to eq(74502)
|
29
29
|
end
|
30
30
|
end
|
31
31
|
|
32
32
|
context "queue_jobs" do
|
33
33
|
it "should report if there are works returned by the Datacite REST API" do
|
34
34
|
response = subject.queue_jobs
|
35
|
-
expect(response).to eq(
|
35
|
+
expect(response).to eq(74502)
|
36
36
|
end
|
37
37
|
end
|
38
38
|
|
39
39
|
context "get_data" do
|
40
40
|
it "should report if there are works returned by the Datacite REST API" do
|
41
41
|
response = subject.get_data
|
42
|
-
expect(response.body.dig("meta", "total")).to eq(
|
42
|
+
expect(response.body.dig("meta", "total")).to eq(74502)
|
43
43
|
expect(response.body.fetch("data", []).size).to eq(1000)
|
44
44
|
doc = response.body.fetch("data", []).first
|
45
45
|
expect(doc.dig("attributes", "doi")).to eq(doi)
|