Skip to content

Commit

Permalink
updated bolognese gem
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Jul 7, 2019
1 parent aa9e5c8 commit 97f4fe8
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 14 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
6 changes: 3 additions & 3 deletions spec/concerns/crosscitable_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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")
Expand Down Expand Up @@ -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")
Expand Down
9 changes: 0 additions & 9 deletions spec/requests/dois_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion spec/requests/providers_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

before do
Provider.import
sleep 1
sleep 2
end

it "returns providers" do
Expand Down

0 comments on commit 97f4fe8

Please sign in to comment.