1
0
Fork 0
mirror of https://github.com/thoughtbot/shoulda-matchers.git synced 2022-11-09 12:01:38 -05:00

Update docs for validate_numericality_of matcher

Typo in the `is_less_than_or_equal_to` method
This commit is contained in:
Grayson Wright 2014-03-10 13:46:47 -04:00 committed by Elliot Winkler
parent 31a0913d7f
commit 5f9e1bc5fb

View file

@ -17,7 +17,7 @@ module Shoulda # :nodoc:
# it { should validate_numericality_of(:age).only_integer }
# it { should validate_numericality_of(:frequency).odd }
# it { should validate_numericality_of(:frequency).even }
# it { should validate_numericality_of(:rank).less_than_or_equal_to(10).allow_nil }
# it { should validate_numericality_of(:rank).is_less_than_or_equal_to(10).allow_nil }
#
def validate_numericality_of(attr)
ValidateNumericalityOfMatcher.new(attr)