From 7a07b1e46bcbce6c35b883e0a5b2772346b06b35 Mon Sep 17 00:00:00 2001 From: Suzanne Vogt Date: Mon, 14 Mar 2022 00:55:53 -0400 Subject: [PATCH] fix test --- spec/models/provider_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/models/provider_spec.rb b/spec/models/provider_spec.rb index dc220a3de..f0a0891b2 100644 --- a/spec/models/provider_spec.rb +++ b/spec/models/provider_spec.rb @@ -168,7 +168,7 @@ subject.doi_estimate = value expect(subject.save).to be false expect(subject.errors.details).to eq( - doi_estimate: [{ error: :doi_estimate_invalid, value: "The doi_estimate must be a nonnegative integer." }] + doi_estimate: [{ count: 0, error: :greater_than_or_equal_to, value: value.to_i }] ) end end