1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Fixes a typo and wordsmithing in the exception message. Typo: nor -> or

This commit is contained in:
Abhay Nikam 2021-04-24 21:09:46 +05:30
parent 3c5cbe8401
commit 0b0b22a46a
2 changed files with 2 additions and 2 deletions

View file

@ -10,7 +10,7 @@ module ActiveModel
def check_validity!
unless (options.keys & COMPARE_CHECKS.keys).any?
raise ArgumentError, "Expected one of :greater_than, :greater_than_or_equal_to, "\
":equal_to, :less_than, :less_than_or_equal_to, nor :other_than supplied."
":equal_to, :less_than, :less_than_or_equal_to, or :other_than option to be supplied."
end
end

View file

@ -301,7 +301,7 @@ class ComparisonValidationTest < ActiveModel::TestCase
Topic.validates_comparison_of(:approved)
end
assert_equal "Expected one of :greater_than, :greater_than_or_equal_to, :equal_to," \
" :less_than, :less_than_or_equal_to, nor :other_than supplied.", error.message
" :less_than, :less_than_or_equal_to, or :other_than option to be supplied.", error.message
end
private