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