From cb5eba8553c8b9f2295906eedba6bfc3242e1f50 Mon Sep 17 00:00:00 2001 From: Martin Fenner Date: Sun, 28 Jul 2019 22:27:43 +0200 Subject: [PATCH] remove obsolete puts statements --- app/jobs/orcid_auto_update_by_id_job.rb | 1 - spec/concerns/crosscitable_spec.rb | 1 - 2 files changed, 2 deletions(-) diff --git a/app/jobs/orcid_auto_update_by_id_job.rb b/app/jobs/orcid_auto_update_by_id_job.rb index 7635b432c..9a9fb39f8 100644 --- a/app/jobs/orcid_auto_update_by_id_job.rb +++ b/app/jobs/orcid_auto_update_by_id_job.rb @@ -48,7 +48,6 @@ def perform(id, options={}) if [200, 201].include?(response.status) logger.info "ORCID #{orcid} added." else - puts response.body["errors"].inspect logger.warn "[Error for ORCID #{orcid}]: " + response.body["errors"].inspect end end diff --git a/spec/concerns/crosscitable_spec.rb b/spec/concerns/crosscitable_spec.rb index d60ec7671..280fadf46 100644 --- a/spec/concerns/crosscitable_spec.rb +++ b/spec/concerns/crosscitable_spec.rb @@ -248,7 +248,6 @@ it "from datacite url" do string = "10.14454/1x4x-9056" meta = subject.parse_xml(string) - puts meta expect(meta["from"]).to eq("datacite") expect(meta["doi"]).to eq("10.14454/1x4x-9056") expect(meta["creators"].length).to eq(1)