Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
svogt0511 committed Mar 14, 2022
1 parent d8f4e37 commit 7a07b1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/models/provider_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7a07b1e

Please sign in to comment.