maltese 0.8.2 → 0.8.3

Sign up to get free protection for your applications and to get access to all the features.
data/spec/sitemap_spec.rb CHANGED
@@ -38,7 +38,7 @@ describe Maltese::Sitemap, vcr: true do
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
- response = subject.get_data
41
+ response = subject.get_data(subject.get_query_url)
42
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
@@ -46,8 +46,8 @@ describe Maltese::Sitemap, vcr: true do
46
46
  end
47
47
 
48
48
  it "should catch errors with the Datacite REST API" do
49
- stub = stub_request(:get, subject.get_query_url(rows: 0)).to_return(:status => [408])
50
- response = subject.get_data(rows: 0)
49
+ stub = stub_request(:get, subject.get_query_url).to_return(:status => [408])
50
+ response = subject.get_data(subject.get_query_url)
51
51
  expect(response.body).to eq("errors"=>[{"status"=>408, "title"=>"Request timeout"}])
52
52
  expect(stub).to have_been_requested
53
53
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: maltese
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.2
4
+ version: 0.8.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Fenner