From cbc7f071c86e5b97a592ab6ec46c6609d0713379 Mon Sep 17 00:00:00 2001 From: Martin Fenner Date: Wed, 3 Jun 2020 18:03:39 +0200 Subject: [PATCH] fix test --- spec/models/doi_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/models/doi_spec.rb b/spec/models/doi_spec.rb index 6dd5c9018..46c220e9f 100644 --- a/spec/models/doi_spec.rb +++ b/spec/models/doi_spec.rb @@ -938,9 +938,9 @@ } } it "repairs data" do - Doi.repair_landing_page(doi.doi) + Doi.repair_landing_page(id: doi.id) - changed_doi = Doi.find(doi.id) + changed_doi = Doi.where(id: doi.id).first expect(changed_doi.landing_page).to eq(fixed_landing_page) end