diff --git a/Gemfile.lock b/Gemfile.lock index 489ba63f8..6a01a420c 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -106,7 +106,7 @@ GEM latex-decode (~> 0.0) binding_of_caller (0.8.0) debug_inspector (>= 0.0.1) - bolognese (1.2.15) + bolognese (1.2.17) activesupport (>= 4.2.5, < 6) benchmark_methods (~> 0.7) bibtex-ruby (~> 4.1) diff --git a/spec/concerns/crosscitable_spec.rb b/spec/concerns/crosscitable_spec.rb index 8796145df..4b1d13d6d 100644 --- a/spec/concerns/crosscitable_spec.rb +++ b/spec/concerns/crosscitable_spec.rb @@ -220,7 +220,7 @@ expect(meta["from"]).to eq("crossref") expect(meta["doi"]).to eq("10.7554/elife.01567") expect(meta["creators"].length).to eq(5) - expect(meta["creators"].first).to eq("familyName"=>"Sankar", "givenName"=>"Martial", "name"=>"Sankar, Martial", "nameType"=>"Personal") + expect(meta["creators"].first).to eq("familyName"=>"Sankar", "givenName"=>"Martial", "name"=>"Sankar, Martial", "affiliation" => "Department of Plant Molecular Biology, University of Lausanne, Lausanne, Switzerland", "nameType"=>"Personal") expect(meta["titles"]).to eq([{"title"=>"Automated quantitative histology reveals vascular morphodynamics during Arabidopsis hypocotyl secondary growth"}]) expect(meta["publication_year"]).to eq("2014") expect(meta["publisher"]).to eq("eLife Sciences Publications, Ltd") @@ -234,7 +234,7 @@ expect(meta["from"]).to eq("crossref") expect(meta["doi"]).to eq("10.7554/elife.01567") expect(meta["creators"].length).to eq(5) - expect(meta["creators"].first).to eq("familyName"=>"Sankar", "givenName"=>"Martial", "name"=>"Sankar, Martial", "nameType"=>"Personal") + expect(meta["creators"].first).to eq("familyName"=>"Sankar", "givenName"=>"Martial", "name"=>"Sankar, Martial", "affiliation" => "Department of Plant Molecular Biology, University of Lausanne, Lausanne, Switzerland", "nameType"=>"Personal") expect(meta["titles"]).to eq([{"title"=>"Automated quantitative histology reveals vascular morphodynamics during Arabidopsis hypocotyl secondary growth"}]) expect(meta["publication_year"]).to eq("2014") expect(meta["publisher"]).to eq("eLife Sciences Publications, Ltd") @@ -389,7 +389,7 @@ expect(meta["doi"]).to eq("10.7554/elife.01567") expect(meta["creators"].length).to eq(5) - expect(meta["creators"].first).to eq("familyName"=>"Sankar", "givenName"=>"Martial", "name"=>"Sankar, Martial", "nameType"=>"Personal") + expect(meta["creators"].first).to eq("familyName"=>"Sankar", "givenName"=>"Martial", "name"=>"Sankar, Martial", "affiliation" => "Department of Plant Molecular Biology, University of Lausanne, Lausanne, Switzerland", "nameType"=>"Personal") expect(meta["titles"]).to eq([{"title"=>"Automated quantitative histology reveals vascular morphodynamics during Arabidopsis hypocotyl secondary growth"}]) expect(meta["publication_year"]).to eq("2014") expect(meta["publisher"]).to eq("eLife Sciences Publications, Ltd") diff --git a/spec/requests/dois_spec.rb b/spec/requests/dois_spec.rb index c8e4bafa1..706d29602 100644 --- a/spec/requests/dois_spec.rb +++ b/spec/requests/dois_spec.rb @@ -2389,15 +2389,6 @@ end end - describe 'POST /dois/delete-test-dois' do - it 'returns dois' do - post '/dois/delete-test-dois', nil, admin_headers - - expect(json['message']).to eq("Test DOIs deleted.") - expect(last_response.status).to eq(200) - end - end - describe 'GET /dois/random' do it 'returns random doi' do get '/dois/random?prefix=10.14454', headers: headers diff --git a/spec/requests/providers_spec.rb b/spec/requests/providers_spec.rb index df8f4ab2f..10ec21d8d 100644 --- a/spec/requests/providers_spec.rb +++ b/spec/requests/providers_spec.rb @@ -19,7 +19,7 @@ before do Provider.import - sleep 1 + sleep 2 end it "returns providers" do